You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to issue a sts:assume_role query with botocore when MFA is enabled. The apparent cause is that Boto is not passing all required security credentials to AWS.
I am able to assume the role using MFA using the Go libraries or via the web API using the same credentials.
My client is: "Botocore/1.4.70 Python/3.5.2 Darwin/15.5.0",
I really would not recommend manually using the credential provider. You can give a profile name when creating a session: botocore.session.Session(profile='foo'). The way you're constructing your client will break the auto-renewal.
To be clear, configuring a profile as described here and doing the following doesn't work:
To be clear, the included code is for reproduction purposes only; I'm not attempting to use the included code in any project.
I actually ran into this issue while attempting to assume a role using the AWS cli, and did my best to trace the issue down. My investigation lead to this point, but I don't have a deep enough familiarity with Botocore to investigate further.
I'm unable to issue a sts:assume_role query with botocore when MFA is enabled. The apparent cause is that Boto is not passing all required security credentials to AWS.
I am able to assume the role using MFA using the Go libraries or via the web API using the same credentials.
My client is: "Botocore/1.4.70 Python/3.5.2 Darwin/15.5.0",
Here's the basic commands I'm issuing:
The result is an access denied error, and the following cloudtrail log:
Calling assume_role without a MFA token also fails:
If I configure my environment with the
mfa_client
tokens, Terraform is able to assume the EXAMPLE role just fine, producing the following log entry:I've also tried using using the mfa_serial and source_profile configuration keys in .aws/credentials, and had no success.
The text was updated successfully, but these errors were encountered: