aws-containers / amazon-ecs-exec-checker

🚀 Pre-flight checks for ECS Exec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for MFA

deleugpn opened this issue · comments

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.

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 👯