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

Support source_profile and MFA #38

Open
ejoncas opened this issue Apr 6, 2018 · 0 comments
Open

Support source_profile and MFA #38

ejoncas opened this issue Apr 6, 2018 · 0 comments

Comments

@ejoncas
Copy link

ejoncas commented Apr 6, 2018

My company has a funny setup where we have SECRET and ACCESS_KEY only for one account. Then that account is configured to allow role assumption for a set of different accounts.

Also, it is a requirement that every user has MFA configured.

This tool does not seem to support adding environments that works with role assumption and MFA, although the aws-cli does.

My .aws/credentials looks something like:

[sharedaccount]
aws_access_key_id     = SECRET
aws_secret_access_key = SUPER_SECRET

[dev]
role_arn       = arn:aws:iam::xxxx:role/MyTeamRole
mfa_serial     = arn:aws:iam::xxxx:mfa/my.username
source_profile = sharedaccount

[qa]
role_arn       = arn:aws:iam::xxxx:role/MyTeamRole
mfa_serial     = arn:aws:iam::xxxx:mfa/my.username
source_profile = sharedaccount

[stg]
role_arn       = arn:aws:iam::xxxx:role/MyTeamRole
mfa_serial     = arn:aws:iam::xxxx:mfa/my.username
source_profile = sharedaccount

[prd]
role_arn       = arn:aws:iam::xxxx:role/MyTeamRole
mfa_serial     = arn:aws:iam::xxxx:mfa/my.username
source_profile = sharedaccount

More info:

https://aws.amazon.com/blogs/security/how-to-use-a-single-iam-user-to-easily-access-all-your-accounts-by-using-the-aws-cli/
https://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html

As you can see, I don't have secret and access key for dev, qa, stg or prod. That makes this tool unusable for a lot of companies that are using this setup.

@ejoncas ejoncas changed the title Support MultiFactor Authentication Support source_profile and MFA Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant