les chemins

This commit is contained in:
Guillaume VALLAT 2024-12-04 17:17:49 +01:00
parent ad8fe669f0
commit 4f5002045b

View File

@ -6,36 +6,14 @@ terraform {
}
}
}
;
provider "google" {
project = var.project_id
region = var.region
}
module "network" {
source = "./modules/network"
# Variables d'entrée
project_name = var.project_name
region = var.region
# Autres variables spécifiques au module
cidr_range = "10.0.0.0/16"
}
module "iam" {
source = "./modules/iam"
# Variables d'entrée
project_name = var.project_name
region = var.region
# Autres variables spécifiques au module
cidr_range = "10.0.0.0/16"
}
module "compute" {
source = "./modules/compute"
source = "../../modules/network"
# Variables d'entrée
project_name = var.project_name
@ -47,6 +25,28 @@ module "compute" {
frontend_cidr = var.frontend_cidr
database_cidr = var.database_cidr
ssh_source_ranges = var.ssh_source_ranges
}
module "iam" {
source = "../../modules/iam"
# Variables d'entrée
project_name = var.project_name
region = var.region
# Autres variables spécifiques au module
cidr_range = "10.0.0.0/16"
}
module "compute" {
source = "../../modules/compute"
# Variables d'entrée
project_name = var.project_name
region = var.region
# Autres variables spécifiques au module
cidr_range = "10.0.0.0/16"
zone = var.zone
instance_type = var.instance_type
}