metadata_options is ignored in aws_spot_instance_request #25896
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.5
on linux_amd64
Affected Resource(s)
(maybe more)
Terraform Configuration Files
My actual TF is much more complex but this is a minimal repro.
Debug Output
https://gist.github.com/gawdn/26e52d96c9d4b4b87ee011faf49bc7ab
Expected Behavior
metadata_options
should be applied to instance requested byaws_spot_instance_request
Actual Behavior
metadata_options
is ignored inaws_spot_instance_request
Steps to Reproduce
terraform apply
describe-instances
to get instance information and see MetadataOptions has not been set correctly.Irrelevant fields dropped:
The
tfstate
does believe it is set though.References
http_endpoint
is explictly set in this case)The text was updated successfully, but these errors were encountered: