Enabling instance_metadata_tags doesn't work unless http_endpoint is explicitly enabled #25079
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.2.1
on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/rcsheets/c7aed2a81c856d3d6a90f5f34502dd68
Panic Output
N/A
Expected Behavior
The produced launch template should have the metadata option
InstanceMetadataTags=enabled
Actual Behavior
The produced launch template does not have the metadata option
InstanceMetadataTags=enabled
. Instead, it is necessary to specifyThis is unexpected, as "enabled" is the default for http_endpoint.
Steps to Reproduce
terraform apply
terraform apply
The bug has already been reproduced on the first invocation, but it's especially apparent on the second invocation, since it appears that the configuration has drifted, even though nothing has changed. A plan such as the following will be observed:
The text was updated successfully, but these errors were encountered: