-
Notifications
You must be signed in to change notification settings - Fork 31
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 role assumption & MFA prompts from profile without AWS_SESSION... env vars #34
Comments
@cobbr2 Thanks for your feedback. |
Hello, Is there any way to use aws profile (not through athenaclirc file) at the athenacli command line for applying aws profile's properties ? Thanks. |
@tkang007 Yes, you can specify aws profile on command line https://github.com/dbcli/athenacli/blob/master/athenacli/main.py#L613 |
In our environment, we often rely on profiles without the AWS_SESSION... environment variables, which is apparently the "new way" of doing temporary tokens in AWS-land.
So boto3 tries to prompt for my MFA, at which point athenacli gets a bit confused: it appears that athenacli and boto3 are competing for control of the terminal. I get prompted several times, and get some really lovely stack traces:
I'm currently working around this using a new feature of our development tools where we set the AWS_SESSION... env vars, which is fine, but it'd be nice to support the newer profile stuff.
The text was updated successfully, but these errors were encountered: