Skip to content

Commit

Permalink
Adding karpenter tag to eks security group (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 authored Sep 19, 2023
1 parent 8bc9944 commit 8a75e84
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions aws/eks/securitygroups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,10 @@ resource "aws_security_group_rule" "notification-worker-egress-endpoints-gateway
security_group_id = aws_security_group.notification-canada-ca-worker.id
prefix_list_ids = var.private-links-gateway-prefix-list-ids
}

# Tag EKS Security Group for Karpenter
resource "aws_ec2_tag" "eks_created_security_group_tag" {
resource_id = data.aws_security_group.eks-securitygroup-rds.id
key = "karpenter.sh/discovery"
value = var.eks_cluster_name
}

0 comments on commit 8a75e84

Please sign in to comment.