commit new all

This commit is contained in:
gregory hendrickson
2023-03-15 11:40:32 -07:00
commit e9964c2141
14 changed files with 441 additions and 0 deletions

31
main.tf Normal file
View File

@@ -0,0 +1,31 @@
terraform {
backend "local" {
path = "terraform.tfstate"
}
}
provider "google" {
project = var.project_id
region = var.region
}
module "network" {
source = "./network"
project_id = var.project_id
region = var.region
network = var.network
subnet = var.subnet
}
module "backend" {
source = "./backend"
}
module "frontend" {
source = "./frontend"
project_id = var.project_id
region = var.region
instance_type = var.instance_type
backend_ip = module.network.backend_ip
subnet_ip = module.network.subnet_ip
}