-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 MFA on AWS #390
Comments
What sort of workflow or user experience are you looking for here? It isn't documented but Terraform accepts the |
I didn't see an AWS_TOKEN variable greping through the source or actually any references to tokens in AWS. As for workflow, if Terraform could automatically detect that MFA is required and ask for the token that would be amazing...but I'm not really sure how you could do that with the AWS APIs without adding a lot of complexity. I'm kind of imagining something like specifying MFA=true in the provider and having to set your credentials via environment variables or dropping them into a var file before runtime out of band (similar to the way you have to handle keys already), erroring out if session_token isn't set and multifactor_auth is set.
If Terraform could respond to just |
It is possible, but I think MFA is sufficiently rare (for better or worse, another discussion) that the environmental variable will do. I think its already supported so this is likely just a docs change. |
Found it in goamz. Looks like the environmental variable name is |
In order to use the AWS security token, you need to:
|
FIxed |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
It looks like Terraform doesn't currently support using Multi-factor Auth for AWS (unless I'm missing something). Not currently a major issue for us but we'd love to be able to use it in the future.
Useful links:
The text was updated successfully, but these errors were encountered: