Skip to content

Commit

Permalink
[DEV-12767] Update eks_cluster_iam_role attribute's value if the clus…
Browse files Browse the repository at this point in the history
…ter_iam_role is not being created or loaded based on the eks_cluster_iam_role_name_override.
  • Loading branch information
NathanOkolita committed Mar 10, 2025
1 parent 41ec207 commit c0eb4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ module "iam" {
kms_key_arn = module.kms_key.key_arn
# EKS cluster role
create_cluster_iam_role = var.create_eks_cluster_role
eks_cluster_iam_role = var.eks_cluster_iam_role_name_override == null ? "eks-cluster-${var.label}-${var.region}" : var.eks_cluster_iam_role_name_override
eks_cluster_iam_role = var.eks_cluster_iam_role_name_override == null ? (var.create_eks_cluster_role ? "eks-cluster-${var.label}-${var.region}" : null) : var.eks_cluster_iam_role_name_override

# s3 replication
enable_s3_replication = var.enable_s3_replication
Expand Down

0 comments on commit c0eb4e6

Please sign in to comment.