diff --git a/tp-cloud/terraform/environments/dev/main.tf b/tp-cloud/terraform/environments/dev/main.tf index f5fce1a..c7cdc3d 100644 --- a/tp-cloud/terraform/environments/dev/main.tf +++ b/tp-cloud/terraform/environments/dev/main.tf @@ -8,7 +8,7 @@ terraform { } provider "google" { - project = var.project_id + project = var.project_name region = var.region } diff --git a/tp-cloud/terraform/modules/network/variables.tf b/tp-cloud/terraform/modules/network/variables.tf index ef6a694..618120e 100644 --- a/tp-cloud/terraform/modules/network/variables.tf +++ b/tp-cloud/terraform/modules/network/variables.tf @@ -7,23 +7,23 @@ variable "project_name" { variable "region" { description = "region de l'instance" type = string - default = "europe-west9b" -} - -variable "backend_cidr" { - description = "cidr du backend" - type = string - default = "10.0.2.0/24" + default = "europe-west1-b" } variable "frontend_cidr" { - description = "cidr du frontend" + description = "CIDR for frontend subnet" type = string default = "10.0.1.0/24" } +variable "backend_cidr" { + description = "CIDR for backend subnet" + type = string + default = "10.0.2.0/24" +} + variable "database_cidr" { - description = "cidr de la DB" + description = "CIDR for database subnet" type = string default = "10.0.3.0/24" }