feat: Allow to override cluster and workers egress CIDRs (#1237)

This commit is contained in:
Matt Dainty
2021-04-20 10:13:14 +01:00
committed by GitHub
parent 81bc7a2dd1
commit 2a78efd082
4 changed files with 16 additions and 2 deletions

View File

@@ -360,7 +360,7 @@ resource "aws_security_group_rule" "workers_egress_internet" {
description = "Allow nodes all egress to the Internet."
protocol = "-1"
security_group_id = local.worker_security_group_id
cidr_blocks = ["0.0.0.0/0"]
cidr_blocks = var.workers_egress_cidrs
from_port = 0
to_port = 0
type = "egress"