Skip to content

Why my SDK is looking for the credentials in the wrong place? #2670

Answered by SamRemis
angeloghiotto asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @angeloghiotto,
The main documentation on our credentials can be found here:
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_provider.html

There are a large number of ways you can authenticate, and at a quick glance it looks like you're trying to use the process credential provider as part of our default chain. If you look at the linked code, it defaults to looking for the credentials file in self::getHomeDir() . '/.aws/credentials', where the getHomeDir function where the home directory function looks for the HOME variable if it exists, and otherwise looks for HOMEDRIVE and HOMEPATH.

Since you're on Debian, it should be able to find the HOME variable and b…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@angeloghiotto
Comment options

Answer selected by angeloghiotto
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants