Skip to content
Advertisement

AWS SDK PHP – Cannot read credentials from /.aws/credentials

There seems to be an error either in the documentation or the SDK itself.
The SDK keeps looking for the standard credentials file while there is none.

JavaScript

It fails with this error:

JavaScript

Does anybody have a clue on how fix this?

Advertisement

Answer

I removed ‘profile’ => ‘default’, from the s3client and it worked. It seemed the profiles were defined twice.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement