From 8d304a6307d3ff7161945794a4a08f933b074272 Mon Sep 17 00:00:00 2001 From: Dustin Lee Date: Fri, 21 Nov 2025 11:48:03 -0500 Subject: [PATCH] Include IMDSv2 options Following TF best practice example --- launch_template.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/launch_template.tf b/launch_template.tf index 90ac985..042e495 100644 --- a/launch_template.tf +++ b/launch_template.tf @@ -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 + instance_metadata_tags = "enabled" + } + block_device_mappings { device_name = var.sensor_launch_template_volume_name