From 00cedc45f084b1780abadf33c10ce5bbd5346cce Mon Sep 17 00:00:00 2001 From: "waqas.yousaf" Date: Tue, 14 May 2024 13:38:13 +0200 Subject: [PATCH] OPS-5920: Fixed MetaData V2 --- modules/consul-cluster/main.tf | 4 +++- modules/vault-cluster/main.tf | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/consul-cluster/main.tf b/modules/consul-cluster/main.tf index 000489d..598b6fc 100644 --- a/modules/consul-cluster/main.tf +++ b/modules/consul-cluster/main.tf @@ -54,7 +54,9 @@ resource "aws_launch_configuration" "launch_configuration" { placement_tenancy = var.tenancy metadata_options { - http_tokens = "required" + http_tokens = "required" + http_put_response_hop_limit = 1 + http_endpoint = "enabled" } security_groups = [ diff --git a/modules/vault-cluster/main.tf b/modules/vault-cluster/main.tf index bdaad21..e621648 100644 --- a/modules/vault-cluster/main.tf +++ b/modules/vault-cluster/main.tf @@ -54,7 +54,9 @@ resource "aws_launch_configuration" "launch_configuration" { ] metadata_options { - http_tokens = "required" + http_tokens = "required" + http_put_response_hop_limit = 1 + http_endpoint = "enabled" } associate_public_ip_address = false