Skip to content

Commit de90ff5

Browse files
andjelxmax-rocket-internet
authored andcommitted
Don't create ingress rule if worker security group exists (#715)
1 parent 905d9f0 commit de90ff5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1010
## [[v8.?.?](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v8.1.0...HEAD)] - YYYY-MM-DD]
1111

1212
- Include ability to configure custom os-specific command for waiting until kube cluster is healthy (@sanjeevgiri)
13+
- Disable creation of ingress rules if worker nodes security groups are exists (@andjelx)
1314

1415
# History
1516

cluster.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource "aws_security_group_rule" "cluster_egress_internet" {
7474
}
7575

7676
resource "aws_security_group_rule" "cluster_https_worker_ingress" {
77-
count = var.create_eks ? 1 : 0
77+
count = var.worker_security_group_id == "" && var.create_eks ? 1 : 0
7878
description = "Allow pods to communicate with the EKS cluster API."
7979
protocol = "tcp"
8080
security_group_id = local.cluster_security_group_id

0 commit comments

Comments
 (0)