Skip to content

Commit 6124a08

Browse files
authored
fix: Eliminates null check on tag values to fix for_each error about unknown *keys* (#3119)
Eliminates null check on tag values to fix for_each error about unknown *keys* Fixes #3118 Related #2760 Related #2681 Related #2337
1 parent 5fe865e commit 6124a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ resource "aws_ec2_tag" "cluster_primary_security_group" {
124124
# Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2006
125125
# Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2008
126126
for_each = { for k, v in merge(var.tags, var.cluster_tags) :
127-
k => v if local.create && k != "Name" && var.create_cluster_primary_security_group_tags && v != null
127+
k => v if local.create && k != "Name" && var.create_cluster_primary_security_group_tags
128128
}
129129

130130
resource_id = aws_eks_cluster.this[0].vpc_config[0].cluster_security_group_id

0 commit comments

Comments
 (0)