diff --git a/tp-cloud/terraform/environments/dev/main.tf b/tp-cloud/terraform/environments/dev/main.tf index d60e515..7b84dd9 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.name region = var.region } @@ -23,6 +23,6 @@ module "network" { cidr_range = var.cidr_range frontend_cidr = var.frontend_cidr backend_cidr = var.backend_cidr - database_cidr = var.database + database_cidr = var.database_cidr ssh_source_ranges = var.ssh_source_ranges } \ No newline at end of file diff --git a/tp-cloud/terraform/environments/dev/variables.tf b/tp-cloud/terraform/environments/dev/variables.tf index 315d995..6dbfd62 100644 --- a/tp-cloud/terraform/environments/dev/variables.tf +++ b/tp-cloud/terraform/environments/dev/variables.tf @@ -1,4 +1,10 @@ variable "project_name" { + description = "nom du projet" + type = string + default = "tp-1-docker" +} + +variable "project_id" { description = "ID du projet" type = string default = "tp-1-docker"