Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load assume role, of profile, failed to get shared config profile #1204

Closed
skmcgrail opened this issue Apr 1, 2021 · 2 comments · Fixed by #1255
Closed

Failed to load assume role, of profile, failed to get shared config profile #1204

skmcgrail opened this issue Apr 1, 2021 · 2 comments · Fixed by #1255
Labels
bug This issue is a bug.

Comments

@skmcgrail
Copy link
Member

The SDK appears to have a bug that does not exist in the V1 SDK. Given the following config and credentials setup the SDK will return an unexpected error failed to load assume role foofoofoofoofoofoofoofoofoofoofoofoofoofoo, of profile A, failed to get shared config profile, A.

~/.aws/config:

[default]
region=us-west-2
external_id=FooBar
role_session_name=FooSessionName
role_arn=foofoofoofoofoofoofoofoofoofoofoofoofoofoo
duration_seconds = 43200
source_profile=A

[profile A]
external_id=AExternalID
role_session_name=ASessionName
role_arn=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
duration_seconds = 43210
source_profile=B

~/.aws/credentials:

[A]
aws_access_key_id=A_PROFILE_ACCESS_KEY_ID
aws_secret_access_key=A_PROFILE_SECRET_ACCESS_KEY
aws_session_token=A_PROFILE_SESSION_TOKEN

[B]
aws_access_key_id=B_PROFILE_ACCESS_KEY_ID
aws_secret_access_key=B_PROFILE_SECRET_ACCESS_KEY
aws_session_token=B_PROFILE_SESSION_TOKEN
@skmcgrail skmcgrail added the bug This issue is a bug. label Apr 1, 2021
@skmcgrail
Copy link
Member Author

Root cause is due to the V2 SDK incorrectly normalizing profile names, which should be treated as case-sensitive. Thus when attempting to lookup profile A, this would fail due to the normalization that had occurred during the INI parsing. This bug in behavior will be fixed in an upcoming release.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant