mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-01 15:03:06 +02:00
Don't create ingress rule if worker security group exists (#715)
This commit is contained in:
committed by
Max Williams
parent
905d9f05a9
commit
de90ff5d3a
@@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
## [[v8.?.?](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v8.1.0...HEAD)] - YYYY-MM-DD]
|
## [[v8.?.?](https://github.com/terraform-aws-modules/terraform-aws-eks/compare/v8.1.0...HEAD)] - YYYY-MM-DD]
|
||||||
|
|
||||||
- Include ability to configure custom os-specific command for waiting until kube cluster is healthy (@sanjeevgiri)
|
- Include ability to configure custom os-specific command for waiting until kube cluster is healthy (@sanjeevgiri)
|
||||||
|
- Disable creation of ingress rules if worker nodes security groups are exists (@andjelx)
|
||||||
|
|
||||||
# History
|
# History
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ resource "aws_security_group_rule" "cluster_egress_internet" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_security_group_rule" "cluster_https_worker_ingress" {
|
resource "aws_security_group_rule" "cluster_https_worker_ingress" {
|
||||||
count = var.create_eks ? 1 : 0
|
count = var.worker_security_group_id == "" && var.create_eks ? 1 : 0
|
||||||
description = "Allow pods to communicate with the EKS cluster API."
|
description = "Allow pods to communicate with the EKS cluster API."
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
security_group_id = local.cluster_security_group_id
|
security_group_id = local.cluster_security_group_id
|
||||||
|
|||||||
Reference in New Issue
Block a user