From 6fb32e15f692782f02ef89ec6285b2c35978d480 Mon Sep 17 00:00:00 2001 From: nelet Date: Wed, 4 Dec 2024 16:23:06 +0100 Subject: [PATCH] oui --- tp-cloud/terraform/environments/dev/main.tf | 4 ++-- tp-cloud/terraform/environments/dev/variables.tf | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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"