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