-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
AWS_PROVIDER not working, explicit 'provider=xx' works fine #8779
Comments
Actually, this may be specific to profiles that use role_arn. Testing the same two cases above with a simple access key id configuration seems to work. But using role_arn appears to only work when I specify the profile in the AWS provider config and not using environment variables. |
Hi @glucas 👋 Does your Terraform environment work with the This environment variable is not currently well documented in the Terraform AWS Provider documentation (there are a few open issues regarding this), but enabling this environment variable does enhance the behavior of AWS Go SDK based applications, like the Terraform AWS Provider. |
Yes, thanks! Setting AWS_SDK_LOAD_CONFIG in my shell environment seems to work. |
Additional information about |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Testing with terraform 0.12 and terraform-providers/aws 2.12.0, on Windows.
The following works as expected:
Commenting out the profile line and instead setting AWS_PROFILE to the same value in my shell does not work:
I can set AWS_DEFAULT_REGION in the shell and that works fine, but cannot use AWS_PROFILE.
The text was updated successfully, but these errors were encountered: