Skip to content

Commit

Permalink
skip worker ingress security group rule when theres no worker securit…
Browse files Browse the repository at this point in the history
…y group
  • Loading branch information
sunghospark-calm committed Jun 25, 2021
1 parent 0befae3 commit e0fc15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,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
Expand Down

0 comments on commit e0fc15e

Please sign in to comment.