Skip to content

Commit

Permalink
fix: Eliminates null check on tag values to fix for_each error about …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
lorengordon authored Aug 9, 2024
1 parent 5fe865e commit 6124a08
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 @@ -124,7 +124,7 @@ resource "aws_ec2_tag" "cluster_primary_security_group" {
# Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2006
# Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2008
for_each = { for k, v in merge(var.tags, var.cluster_tags) :
k => v if local.create && k != "Name" && var.create_cluster_primary_security_group_tags && v != null
k => v if local.create && k != "Name" && var.create_cluster_primary_security_group_tags
}

resource_id = aws_eks_cluster.this[0].vpc_config[0].cluster_security_group_id
Expand Down

0 comments on commit 6124a08

Please sign in to comment.