Skip to content
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_instance metadata_options don't honor the defaults #12723

Closed
acdha opened this issue Apr 7, 2020 · 3 comments
Closed

aws_instance metadata_options don't honor the defaults #12723

acdha opened this issue Apr 7, 2020 · 3 comments
Labels
service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@acdha
Copy link
Contributor

acdha commented Apr 7, 2020

Description

The EC2 aws_instance resource lists several options with default values:

https://www.terraform.io/docs/providers/aws/r/instance.html#metadata-options

Unfortunately, you have to specify these values to have Terraform successfully create the resource.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.12.24
+ provider.aws v2.55.0
+ provider.http v1.1.1

Affected Resource(s)

  • aws_instance

Terraform Configuration Files

   metadata_options {
     # Require usage of the newer v2 metadata API:
    http_tokens = "required"
   }

Expected Behavior

Terraform would use the documented default values for the unspecified fields

Actual Behavior

InvalidParameterValue: A value of '' is not valid for HttpEndpoint

Steps to Reproduce

  1. terraform apply
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Apr 7, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 7, 2020
@acdha
Copy link
Contributor Author

acdha commented Apr 8, 2020

Odd - #12564 has the exact error message but Github search didn’t turn it up before I opened this issue. I’m inclined to close this as a duplicate.

@acdha acdha closed this as completed Apr 8, 2020
@ghost
Copy link

ghost commented May 9, 2020

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!

@ghost ghost locked and limited conversation to collaborators May 9, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

3 participants