mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-23 09:51:04 +01:00
fix: Avoid re-naming the primary security group through a Name tag and leave to the EKS service to manage (#2010)
This commit is contained in:
5
main.tf
5
main.tf
@@ -60,7 +60,10 @@ resource "aws_eks_cluster" "this" {
|
||||
}
|
||||
|
||||
resource "aws_ec2_tag" "cluster_primary_security_group" {
|
||||
for_each = { for k, v in merge(var.tags, var.cluster_tags) : k => v if local.create }
|
||||
# This should not affect the name of the 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" }
|
||||
|
||||
resource_id = aws_eks_cluster.this[0].vpc_config[0].cluster_security_group_id
|
||||
key = each.key
|
||||
|
||||
Reference in New Issue
Block a user