ajout des configs terraform

This commit is contained in:
2025-12-03 16:39:42 +01:00
parent 84d78b69e1
commit f41cd5130b
5 changed files with 115 additions and 154 deletions

View File

@@ -1,29 +1,37 @@
variable "project_id" {
description = "L'ID du projet GCP."
# À vous de définir les variables pour :
# - project_name (string)
# - region (string)
# - frontend_cidr (string)
# - backend_cidr (string)
# - database_cidr (string)
# - ssh_source_ranges (string)
variable "project_name" {
description = "Nom du projet"
type = string
}
variable "region" {
description = "La région GCP pour les sous-réseaux."
description = "Region du projet"
type = string
}
variable "frontend_cidr" {
description = "Plage CIDR pour le sous-réseau frontend (public)."
description = "CIDR for frontend subnet"
type = string
}
variable "backend_cidr" {
description = "Plage CIDR pour le sous-réseau backend (privé)."
description = "CIDR for backend subnet"
type = string
}
variable "database_cidr" {
description = "Plage CIDR pour le sous-réseau base de données (privé)."
description = "CIDR for database subnet"
type = string
}
variable "ssh_source_ranges" {
description = "Plages CIDR autorisées pour l'accès SSH (par exemple, ['0.0.0.0/0'])."
type = list(string)
description = ""
type = string
}