Skip to content

Commit 6c56d1d

Browse files
committed
Added new NAt IP
1 parent 1b3a20d commit 6c56d1d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

environments/dev/main.tf

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,19 @@ module "cloudrouter" {
6565
}
6666

6767
# Cloud NAT
68-
module "nat_ip_vpc_a" {
68+
module "nat_ip_vpc_a_1" {
6969
source = "../../modules/public_ip"
7070
depends_on = [module.vpc]
7171

72-
name = "dev-nat-ip-vpc-a"
72+
name = "dev-nat-ip-vpc-a-1"
73+
region = var.region
74+
}
75+
76+
module "nat_ip_vpc_a_2" {
77+
source = "../../modules/public_ip"
78+
depends_on = [module.vpc]
79+
80+
name = "dev-nat-ip-vpc-a-2"
7381
region = var.region
7482
}
7583

@@ -84,14 +92,14 @@ module "nat_ip_vpc_b" {
8492
module "cloudnat" {
8593
source = "../../modules/cloudnat"
8694
project_id = var.project_id
87-
depends_on = [module.cloudrouter, module.nat_ip_vpc_a, module.nat_ip_vpc_b]
95+
depends_on = [module.cloudrouter, module.nat_ip_vpc_a_1, module.nat_ip_vpc_a_2, module.nat_ip_vpc_b]
8896

8997
nats = {
9098
"dev-vpc-a-nat-1" = {
9199
name = "dev-vpc-a-nat-1"
92100
region = var.region
93101
router = module.cloudrouter.router_names["dev-vpc-a-router"]
94-
nat_ips = [module.nat_ip_vpc_a.name]
102+
nat_ips = [module.nat_ip_vpc_a_1.name, module.nat_ip_vpc_a_2.name]
95103
},
96104
"dev-vpc-b-nat-1" = {
97105
name = "dev-vpc-b-nat-1"

0 commit comments

Comments
 (0)