aws-containers / amazon-ecs-exec-checker

🚀 Pre-flight checks for ECS Exec
MIT No Attribution
864 stars 136 forks source link

Support for MFA #27

Closed deleugpn closed 3 years ago

deleugpn commented 3 years ago

I'm getting error while the tool tries to DescribeTask but not because I'm missing the permission, I'm just missing the MFA requirement of the Role.

toricls commented 3 years ago

Hey @deleugpn thanks for letting us know about this!

I just created a PR #28 to support MFA, so could you possibly check if it meets your needs?

All you need to do is just running the updated script if you already have the "mfa_serial" configuration in your ~/.aws/config. If you don't have the configuration in your ~/.aws/config then expose AWS_MFA_SERIAL environment variable to set the ARN of your MFA device before running script 👯