-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
[Bug]: launch template default value changed: http_token #30382
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hi @tburow, can you please share your configuration? I'm trying to reproduce the problem, and I get Do you have multiple versions of the Launch Template, or is this for a new Launch Template? |
ok - so if the resource module is not specifying a default value then im not sure what to say. Give me till monday to chase down the developer and get the code. |
Based on this testcase If we remove the below line and run the test, we may be able to reproduce it (http_tokens becoming 'required') |
yes essentially we did not have the meta block defined - then from .60 to .61 the default behavior changed. I was unable to find in code where it flipped - perhaps an CLI/SDK default change if there were other changes in the release code. I was not able to confirm with AWS if they changed anything on their end. Our AWS support team is not aware of any EC2 releases over the same period. At a min - maybe an update of the release notes and documentation to reflect the changed behavior. |
This just confused me as well for |
Terraform Core Version
v1.4.2
AWS Provider Version
4.61.0
Affected Resource(s)
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#metadata-options
http_token default value from 4.60.0 to 4.61.0 changed from optional to required under change #30107
This is a breaking change not declared in the pull request, release notes or documentation
Expected Behavior
http_token default value should either remain as "optional" or this change needs to be fully documented in both the release and current documentation.
Actual Behavior
http_token = required
breaks ec2 instance metadata operations unless properly coordinated with supporting code and or resource changes
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
n/a
Steps to Reproduce
n/a
Debug Output
n/a
Panic Output
n/a
Important Factoids
Code impact:
this impacts both java and python application code methods
Configuration impact:
Docker containers running on EC2, from a launch template will fail to retrieve role credentials due to IDMS version changes with out additional required config modification
References
#30107
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_template#metadata-options
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: