Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ resource "aws_launch_template" "sensor_launch_template" {
}
}

metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
http_put_response_hop_limit = 1
Copy link

@ekoyle ekoyle Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setting may prevent containers (exporters, etc) from using an instance role to connect to S3.

(I know there was an issue in the past where this needed to be >= 2 to use an instance role to connect to S3, unsure whether there was some other fix for that.)

instance_metadata_tags = "enabled"
}

block_device_mappings {
device_name = var.sensor_launch_template_volume_name

Expand Down