-
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 ignores skip_credentials_validation in latest release #5496
Comments
If the provider is unable to determine the AWS account ID from a provider assume role configuration or the STS GetCallerIdentity call used to verify the credentials (if There are implications of the provider not having its AWS account ID properly initialized, which are noted at: https://www.terraform.io/docs/providers/aws/index.html#skip_requesting_account_id Since the provider behavior change was breaking, I have submitted a pull request to temporarily reinstate the old behavior and note the upcoming error change in the next major version of the provider: #5794 I would recommend adding the following to your provider configurations, which should work with the latest 1.X versions (even before the above pull request is released) as well as 2.X: provider "aws" {
# ... other configuration ...
skip_requesting_account_id = true
} |
@bflad Thanks for the info! I will definitely include that moving forward. |
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! |
Community Note
Terraform Version
0.11.7
1.31.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/nterry/d7c64ceac29498de643e39d860fedca2
Expected Behavior
Successful apply, ignoring STS auth
Actual Behavior
Tries to authenticate with STS
Steps to Reproduce
terraform apply
Important Factoids
Pinning to 1.30.0 resolves the issue
The text was updated successfully, but these errors were encountered: