-
Notifications
You must be signed in to change notification settings - Fork 137
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 using MFA devices for AWS CLI commands #28
Conversation
I'm not sure if I'm missing something
Notice how I got asked twice, the first one numbers are visible and the 2nd one they're not. |
Thanks @deleugpn for checking! I'm still not sure about the cause of the error, but could you run that again with the following command to make sure you're using the latest script?
|
That command seems to be broken for me, so I used that link to download the file and run it
|
a6ec79a
to
1fb4641
Compare
Thank you! I fixed an issue that the script couldn't handle an MFA + AssumeRole case correctly, so hope it works this time! 🙏 |
Awesome! This seems to work great! |
This PR implements MFA support for AWS CLI commands and closes #27 🚀
It reads the AWS CLI configuration (by
aws configure get mfa_serial
) to detect if it needs an MFA code to proceed. The script also accepts an environment variableAWS_MFA_SERIAL
to set the ARN of the MFA device, instead of the AWS CLI configuration.Try it with
AWS_PROFILE=<your-profile-here> bash <( curl -Ls https://raw.github.com/toricls/amazon-ecs-exec-checker/support-mfa/check-ecs-exec.sh ) <ecs-cluster-name> <ecs-task-id>
.