forked from pierront/but3-iac
ajout des configs terraform
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user