2025-12-03 16:12:20 +00:00
|
|
|
variable "projet_name" {
|
|
|
|
|
description = "GCP project id"
|
|
|
|
|
type = string
|
2025-12-04 09:34:31 +01:00
|
|
|
default = "projet-hugo-478713"
|
2025-12-03 16:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
|
description = "GCP region"
|
|
|
|
|
type = string
|
|
|
|
|
default = "europe-west9"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "frontend_cidr" {
|
|
|
|
|
description = "CIDR for frontend subnet"
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.10.1.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "backend_cidr" {
|
|
|
|
|
description = "CIDR for backend subnet"
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.10.2.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "database_cidr" {
|
|
|
|
|
description = "CIDR for database subnet"
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.10.3.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "ssh_source_ranges" {
|
|
|
|
|
description = "Source ranges allowed for SSH (comma separated)"
|
|
|
|
|
type = list(string)
|
|
|
|
|
default = ["0.0.0.0/0"]
|
|
|
|
|
}
|