Added option to enable or disable Cloud NAT.
This commit is contained in:
@@ -23,6 +23,8 @@ module "hub_network" {
|
||||
cidr = var.hub.cidr
|
||||
region = var.hub.region
|
||||
}]
|
||||
|
||||
nat = true
|
||||
}
|
||||
|
||||
module "spoke_network" {
|
||||
@@ -36,6 +38,8 @@ module "spoke_network" {
|
||||
region = var.spoke.region
|
||||
}
|
||||
]
|
||||
|
||||
nat = true
|
||||
}
|
||||
|
||||
module "hub_to_spoke_peering" {
|
||||
@@ -61,7 +65,7 @@ module "hub_to_spoke_peering" {
|
||||
]
|
||||
}
|
||||
|
||||
module "vm-hub" {
|
||||
module "vm_hub" {
|
||||
source = "./modules/linux-vm"
|
||||
|
||||
name = "vm-${var.hub.name}"
|
||||
@@ -72,7 +76,7 @@ module "vm-hub" {
|
||||
depends_on = [module.hub_network]
|
||||
}
|
||||
|
||||
module "vm-spoke" {
|
||||
module "vm_spoke" {
|
||||
source = "./modules/linux-vm"
|
||||
|
||||
name = "vm-${var.spoke.name}"
|
||||
|
||||
Reference in New Issue
Block a user