aws-containers / amazon-ecs-exec-checker

🚀 Pre-flight checks for ECS Exec
MIT No Attribution
886 stars 141 forks source link

Support for Profile? #26

Closed deleugpn closed 3 years ago

deleugpn commented 3 years ago

While trying to use the tool, I get an error that suggests that I use aws configure. However I have several accounts/credentials and none of them are default to my environment. Using profile would be ideal.

toricls commented 3 years ago

Hi, thanks for creating this issue @deleugpn!

It does support using profile, so you can use your profile by just exposing it as AWS_PROFILE like:

AWS_PROFILE=<your profile name> ./check-ecs-exec.sh <your cluster name> <your task id>

Please take a look at the usage section as well :)

toricls commented 3 years ago

Also, feel free to reopen the issue if my comment above is not getting your point!

deleugpn commented 3 years ago

AWS_PROFILE works, thanks!