-
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
Skipping the need for AWS creds seems to have broken in 3.51.0 #20287
Comments
It broke due to hashicorp/terraform-provider-aws#20287 Locking it in the test helper as well as the aws_instance is needed to ensure that running that specific test in dev works ok too.
It broke due to hashicorp/terraform-provider-aws#20287 Locking it in the test helper as well as the aws_instance is needed to ensure that running that specific test in dev works ok too.
Sorry, I did not expect my change to cause this. Currently reading instance tags is the only way to find out whether a launch template was used for its creation. This is used only in Can you please run terraform in trace mode (with |
Thanks @gordonbondon - plz see trace_logs.txt for the |
Attempt at fixing this here #20357, please check if it works for you. |
@gordonbondon thanks! I tested that PR and it works ok with the example in the GH issue description. |
This functionality has been released in v3.53.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
I think prior to this change, the
skip_credentials_validation=true
andskip_requesting_account_id=true
worked as expected. However, in 3.51.0, I'm seeing "error reading Instance Launch Template Id Tag: AuthFailure: AWS was not able to validate the provided access credentials" even whenlaunch_template
is not used (see following before/after examples). I was under the assumption that the 5 differentskip_
arguments could be used to turn-off the need for AWS creds during testing (we have integration tests in https://github.com/infracost/infracost that started to fail this morning).Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.2 on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
3.50.0 behavior
With this example,
terraform plan
worked ok:3.51.0 behavior, where
terraform plan
failsterraform plan
produces this error:Expected Behavior
terraform plan
should have worked as it did in 3.50.0Actual Behavior
terraform plan
failed with "error reading Instance Launch Template Id Tag: AuthFailure: AWS was not able to validate the provided access credentials".Steps to Reproduce
main.tf
and the previously mentioned examples.terraform init
followed byterraform apply
and notice how it works ok on 3.50.0 but not on 3.51.0Important Factoids
References
The text was updated successfully, but these errors were encountered: