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

credential_process and virtual mfa: Not asked for a MFA code #146

Open
kirnberger1980 opened this issue May 6, 2021 · 0 comments
Open

Comments

@kirnberger1980
Copy link

kirnberger1980 commented May 6, 2021

We want to use the support of credential_process in awsume in combination with our virtual mfa. The following config file is working fine, when using credential_process with aws cli directly:

[default]
credential_process = /Users/kb/credentials.sh
region=eu-west-1
output=json
cli_pager=cat
mfa_serial=arn:aws:iam::xxxxxxxxxxxx:mfa/kb

[profile accountb]
role_arn=arn:aws:iam::yyyyyyyyyyyyy:role/MySuperRole
region=eu-west-1
output=json
source_profile=default
mfa_serial=arn:aws:iam::xxxxxxxxxxxx:mfa/kb

When we awsume into accountb, we get the following error without asking for an MFA code:

Awsume error: An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:iam::xxxxxxxxxxxx:mfa/kb is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::yyyyyyyyyyyyy:role/MySuperRole

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants