From 438be962625b7de9735c192621b88ce3efa6fd07 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Thu, 9 Nov 2023 18:28:07 -0500 Subject: [PATCH] fix: Remove additional conditional on Karpenter instance profile creation to support upgrading --- modules/karpenter/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/karpenter/main.tf b/modules/karpenter/main.tf index f74d577643..2ce9f95c16 100644 --- a/modules/karpenter/main.tf +++ b/modules/karpenter/main.tf @@ -386,7 +386,7 @@ locals { } resource "aws_iam_instance_profile" "this" { - count = var.create && var.create_instance_profile && !var.enable_karpenter_instance_profile_creation ? 1 : 0 + count = var.create && var.create_instance_profile ? 1 : 0 name = var.iam_role_use_name_prefix ? null : local.iam_role_name name_prefix = var.iam_role_use_name_prefix ? "${local.iam_role_name}-" : null