Working Landing Zone.
This commit is contained in:
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user