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