File tree 2 files changed +11
-1
lines changed
examples/eks_managed_node_group
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,13 @@ module "eks" {
67
67
resources = [" secrets" ]
68
68
}]
69
69
70
+ cluster_tags = {
71
+ # This should not affect the name of the cluster primary security group
72
+ # Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2006
73
+ # Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2008
74
+ Name = local.name
75
+ }
76
+
70
77
vpc_id = module. vpc . vpc_id
71
78
subnet_ids = module. vpc . private_subnets
72
79
Original file line number Diff line number Diff line change @@ -60,7 +60,10 @@ resource "aws_eks_cluster" "this" {
60
60
}
61
61
62
62
resource "aws_ec2_tag" "cluster_primary_security_group" {
63
- for_each = { for k , v in merge (var. tags , var. cluster_tags ) : k => v if local . create }
63
+ # This should not affect the name of the cluster primary security group
64
+ # Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2006
65
+ # Ref: https://github.com/terraform-aws-modules/terraform-aws-eks/pull/2008
66
+ for_each = { for k , v in merge (var. tags , var. cluster_tags ) : k => v if local . create && k != " Name" }
64
67
65
68
resource_id = aws_eks_cluster. this [0 ]. vpc_config [0 ]. cluster_security_group_id
66
69
key = each. key
You can’t perform that action at this time.
0 commit comments