From 9ffcc99ca6c083112c54804786a546ac8d0f6dfe Mon Sep 17 00:00:00 2001 From: aissi Date: Thu, 4 Dec 2025 11:24:05 +0100 Subject: [PATCH] commit --- .../terraform/environments/dev/variables.tf | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/tp-cloud/terraform/environments/dev/variables.tf b/tp-cloud/terraform/environments/dev/variables.tf index e69de29..2260c1d 100644 --- a/tp-cloud/terraform/environments/dev/variables.tf +++ b/tp-cloud/terraform/environments/dev/variables.tf @@ -0,0 +1,88 @@ +variable "instance_type" { + description = "type de l'instance" + type = string + default = "e2-small" +} + +variable "zone" { + description = "région" + type = string + default = "europe-west9-b" +} + +variable "frontend_subnet_id" { + description = "front-end id" + type = string + +} + +variable "backend_subnet_id" { + description = "back-end id" + type = string + +} + +variable "database_subnet_id" { + description = "database id" + type = string + +} + + + + + + +variable "project_id" { + + description = "ID du projet GCP dans lequel appliquer les règles IAM" + type = string + default = "gifted-chimera-424007-g1 " +} + + + + + + + + + +variable "project_name" { + description = "Nom du projet" + type = string + default = "My First Project" +} + +variable "region" { + description = "Région" + type = string + default = "europe-west9" +} + +variable "frontend_cidr" { + description = "CIDR du frontend" + type = string + default = "10.0.1.0/24" +} + +variable "backend_cidr" { + description = "CIDR du backend" + type = string + default = "10.0.2.0/24" + +} + +variable "database_cidr" { + description = "CIDR de la database" + type = string + default = "10.0.3.0/24" +} + +variable "ssh_source_ranges" { + description = "Plages IP autorisées pour SSH" + type = string + default = "0.0.0.0/0" + +} +