Closed Tohmua closed 1 year ago
The EC2 instance is using version 1 of the Instance Metadata Service, which is prone to publicly known weaknesses.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
Setting: http_tokens to required as part of the launch_template can solve this.
http_tokens
required
launch_template
Fixed in #147
The EC2 instance is using version 1 of the Instance Metadata Service, which is prone to publicly known weaknesses.
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance
Setting:
http_tokens
torequired
as part of thelaunch_template
can solve this.