Skip to content

Commit

Permalink
fix: Remove additional conditional on Karpenter instance profile crea…
Browse files Browse the repository at this point in the history
…tion to support upgrading (#2812)
  • Loading branch information
bryantbiggs committed Nov 10, 2023
1 parent dfed830 commit c36c8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c36c8dc

Please sign in to comment.