-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Set region of aws provider via profile (i.e. from ~/.aws/config) #1767
Comments
I think you have the wrong format in your |
The |
Currently, as far as I understand, However, it looks like the current code always overrides region anyway. |
I had the same issue today while configuring terraform aws provider to use a profile... the region is set in the profile but not respected by terraform. |
+1 for this issue
|
+1
|
+1
|
yeah, this is effecting me as well. apparently need to specify via would be great to be able to specify in |
Any updates on this, or a targeted/expected version this may be fixed in? |
Still an issue with |
Hi folks 👋 This appears to be a duplicate of #687, so to consolidate discussions and efforts, I'm going to close this issue in preference of that one. Please 👍 upvote that issue and subscribe to it for further updates on this topic. |
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! |
According to the docs for aws provider here (https://www.terraform.io/docs/providers/aws/#region), "region" is a required field which can be set "via a shared credentials file if profile is specified"
I read this to mean that if I configure my provider something like this
and ~/.aws/config contains something like the following
the "region" argument should be set to "us-gov-west-1".
However, when I use this configuration and run
terraform plan
I get the following:Am I misunderstanding the documentation?
Terraform Version
Terraform v0.10.6
The text was updated successfully, but these errors were encountered: