1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

fix: Worker security group handling when worker_create_security_group=false (#1461)

This commit is contained in:
Sungho Spark
2021-09-06 04:40:50 -07:00
committed by GitHub
parent 577e16d167
commit 752c183678
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ resource "aws_security_group_rule" "cluster_egress_internet" {
}
resource "aws_security_group_rule" "cluster_https_worker_ingress" {
count = var.cluster_create_security_group && var.create_eks ? 1 : 0
count = var.cluster_create_security_group && var.create_eks && var.worker_create_security_group ? 1 : 0
description = "Allow pods to communicate with the EKS cluster API."
protocol = "tcp"
security_group_id = local.cluster_security_group_id