awslabs / fargatecli

CLI for AWS Fargate
Apache License 2.0
894 stars 114 forks source link

Support for profiles defined in .aws/config with MFA authentication. #101

Closed kallu closed 5 years ago

kallu commented 5 years ago

Issue #, if available: 17

Description of changes: Support for profiles requiring MFA authentication, e.g.

% AWS_DEFAULT_PROFILE=my-profile-name AWS_SDK_LOAD_CONFIG=true ./fargate task list

will now ask MFA code if that has been enabled for my-profile-name defined in .aws/config

(but now reading through all the comments I realize since there is no MFA caching in GO SDK this doesn't provide very good user experince)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.