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