Skip to content

Commit 2bca25a

Browse files
authored
fix: Correct Internet Gateway creation rule (#626)
Co-authored-by: Serhii Zasenko <[email protected]>
1 parent f1cc767 commit 2bca25a

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 = var.load_balancers == "internal" && var.create_bastion_host == false ? false : true
13+
create_internet_gateway = var.load_balancers == "internal" && var.create_bastion_host == false && var.control_plane_type == "private" ? 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)