Skip to content

Commit e2692fd

Browse files
authored
feat: disable internetgateway when lbs are internal and bastion host is disabled (#468)
Signed-off-by: Nikhil Kota <srinivasa.nikhil.kota@oracle.com>
1 parent 59b25a1 commit e2692fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module "vcn" {
1010
label_prefix = var.label_prefix
1111

1212
# gateways
13-
create_internet_gateway = true
13+
create_internet_gateway = var.load_balancers == "internal" && var.create_bastion_host == false ? false : true
1414
create_nat_gateway = var.worker_type == "private" || var.create_operator == true || (var.load_balancers == "internal" || var.load_balancers == "both") ? true : false
1515
create_service_gateway = true
1616
nat_gateway_public_ip_id = var.nat_gateway_public_ip_id

0 commit comments

Comments
 (0)