From 4f5002045b603b67af0bf9b2fc94d62f41ee5cf7 Mon Sep 17 00:00:00 2001 From: Vallat Date: Wed, 4 Dec 2024 17:17:49 +0100 Subject: [PATCH] les chemins --- environments/dev/main.tf | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/environments/dev/main.tf b/environments/dev/main.tf index 89ecf63..1b9f7e8 100644 --- a/environments/dev/main.tf +++ b/environments/dev/main.tf @@ -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 } \ No newline at end of file