forked from pierront/but3-iac
Update
This commit is contained in:
@@ -19,6 +19,17 @@ provider "google" {
|
|||||||
|
|
||||||
provider "local" {}
|
provider "local" {}
|
||||||
|
|
||||||
|
module "network" {
|
||||||
|
source = "../../modules/network"
|
||||||
|
|
||||||
|
project_name = var.project_id
|
||||||
|
region = var.region
|
||||||
|
frontend_cidr = "10.0.1.0/24"
|
||||||
|
backend_cidr = "10.0.2.0/24"
|
||||||
|
database_cidr = "10.0.3.0/24"
|
||||||
|
ssh_source_ranges = "34.79.226.15/32"
|
||||||
|
}
|
||||||
|
|
||||||
module "iam" {
|
module "iam" {
|
||||||
source = "../../modules/iam"
|
source = "../../modules/iam"
|
||||||
|
|
||||||
@@ -40,15 +51,4 @@ module "compute" {
|
|||||||
database_subnet_id = module.network.subnet_ids["database"]
|
database_subnet_id = module.network.subnet_ids["database"]
|
||||||
ssh_pub_key = var.ssh_pub_key
|
ssh_pub_key = var.ssh_pub_key
|
||||||
service_account_email = module.iam.service_account_email
|
service_account_email = module.iam.service_account_email
|
||||||
}
|
|
||||||
|
|
||||||
module "network" {
|
|
||||||
source = "../../modules/network"
|
|
||||||
|
|
||||||
project_name = var.project_id
|
|
||||||
region = var.region
|
|
||||||
frontend_cidr = "10.0.1.0/24"
|
|
||||||
backend_cidr = "10.0.2.0/24"
|
|
||||||
database_cidr = "10.0.3.0/24"
|
|
||||||
ssh_source_ranges = "34.79.226.15/32"
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user