mirror of
https://github.com/ghndrx/GSP662.git
synced 2026-02-10 06:54:58 +00:00
commit new all
This commit is contained in:
31
main.tf
Normal file
31
main.tf
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user