2025-12-03 16:06:54 +01:00
|
|
|
variable "project_id" {
|
|
|
|
|
description = "L'ID du projet GCP."
|
|
|
|
|
type = string
|
2025-12-03 15:50:34 +01:00
|
|
|
}
|
|
|
|
|
|
2025-12-03 16:06:54 +01:00
|
|
|
variable "region" {
|
|
|
|
|
description = "Région de déploiement."
|
|
|
|
|
type = string
|
|
|
|
|
default = "europe-west1"
|
2025-12-03 15:50:34 +01:00
|
|
|
}
|
2025-12-03 16:06:54 +01:00
|
|
|
|
|
|
|
|
variable "zone" {
|
|
|
|
|
description = "Zone de déploiement."
|
|
|
|
|
type = string
|
|
|
|
|
default = "europe-west1-b"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
|
description = "Type de machine pour les instances."
|
|
|
|
|
type = string
|
|
|
|
|
default = "e2-small"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "frontend_cidr" {
|
|
|
|
|
description = "Plage CIDR du frontend."
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.10.1.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "backend_cidr" {
|
|
|
|
|
description = "Plage CIDR du backend."
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.10.2.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "database_cidr" {
|
|
|
|
|
description = "Plage CIDR de la base de données."
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.10.3.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "ssh_source_ranges" {
|
|
|
|
|
description = "Plages CIDR autorisées pour l'accès SSH."
|
|
|
|
|
type = list(string)
|
|
|
|
|
default = ["0.0.0.0/0"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "gcp_user_email" {
|
|
|
|
|
description = "Votre adresse e-mail GCP (pour OS Login)."
|
|
|
|
|
type = string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "ssh_public_key" {
|
|
|
|
|
description = "Votre clé publique SSH (contenu du fichier ~/.ssh/id_ed25519.pub)."
|
|
|
|
|
type = string
|
|
|
|
|
}
|