Working Landing Zone.

This commit is contained in:
2025-03-30 11:31:28 +02:00
commit a427e31bb6
10 changed files with 216 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 6.27.0"
}
}
}
provider "google" {
# Configuration options
region = var.region
zone = var.zone
project = var.project_id
}
module "network" {
source = "./modules/network"
name = var.network_name
subnets = [
{
name = var.subnet_name
region = var.region
cidr = var.subnet_cidr
}
]
}
module "vm" {
source = "./modules/linux-vm"
name = "vm-test"
network_name = var.network_name
subnet_name = var.subnet_name
ssh = var.ssh
depends_on = [module.network]
}