Added option to enable or disable Cloud NAT.

This commit is contained in:
2025-03-31 10:29:07 +02:00
parent 93537e5da5
commit 5b0c5d33eb
3 changed files with 15 additions and 3 deletions
+6 -2
View File
@@ -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}"