This commit is contained in:
gastonchenet
2025-12-04 09:53:46 +01:00
parent 0678dd3395
commit 8e67258ad4

View File

@@ -19,6 +19,17 @@ provider "google" {
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" {
source = "../../modules/iam"
@@ -40,15 +51,4 @@ module "compute" {
database_subnet_id = module.network.subnet_ids["database"]
ssh_pub_key = var.ssh_pub_key
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"
}