From e15b4bd379c42155fa92171ebd112b6b7787aeaf Mon Sep 17 00:00:00 2001 From: Marcel Drechsler <87485681+marcelinho09@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:12:12 +0100 Subject: [PATCH 1/2] Update main.tf --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 749e67d4..4e63d15b 100644 --- a/main.tf +++ b/main.tf @@ -553,7 +553,7 @@ locals { } data "aws_iam_policy_document" "assume_role_policy" { - count = var.create && var.create_iam_instance_profile ? 1 : 0 + count = var.create && var.create_iam_instance_profile ? 0 : 1 statement { sid = "EC2AssumeRole" From 2f09bfa58bd19f0d9e71c6d4d0eb60dc2841d7cd Mon Sep 17 00:00:00 2001 From: Marcel Drechsler <87485681+marcelinho09@users.noreply.github.com> Date: Mon, 17 Mar 2025 16:56:32 +0100 Subject: [PATCH 2/2] Update variables.tf --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 38a1b5b2..e59a9dc8 100644 --- a/variables.tf +++ b/variables.tf @@ -160,7 +160,7 @@ variable "metadata_options" { default = { "http_endpoint" = "enabled" "http_put_response_hop_limit" = 1 - "http_tokens" = "optional" + "http_tokens" = "required" } }