Skip to content

No credentials could be found from valid profile using ProfileConfigFileAWSCredentialsProvider #2063

Answered by RoyZhang2022
RoyZhang2022 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Sergey,

I have figured out the root cause. It is my problem. The profile should be the profile section name like default1 or default2, instead of the while profile string.

[default1]
aws_access_key_id=xxxxxxxxxxxxxxxxx
aws_secret_access_key=xxxxxxxxxxxxxxxxxxxxxxxxx

[default2]
aws_access_key_id=xxxxxxxxxxxxxxxxx
aws_secret_access_key=xxxxxxxxxxxxxxxxxxxxxxxxx

The SDK description here is correct. But if it has an example that will be helpful. As the profile is easy to be understood as a profile file name. I tried a file name, then tried a profile string before I used the profile name. I used one day to figure out this.

https://sdk.amazonaws.com/cpp/api/LATEST/class_aws_1_1_auth_1_1_prof…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by RoyZhang2022
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