2025-12-03 16:11:01 +00:00
|
|
|
|
|
|
|
|
variable "project_name" {
|
|
|
|
|
description = "Project ID GCP"
|
|
|
|
|
type = string
|
|
|
|
|
default = "western-diorama-374821"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
|
description = "Region GCP"
|
|
|
|
|
type = string
|
|
|
|
|
default = "us-central1"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "zone" {
|
|
|
|
|
description = "Zone GCP"
|
|
|
|
|
type = string
|
2025-12-04 08:26:56 +00:00
|
|
|
default = "us-central1-a"
|
2025-12-03 16:11:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "frontend_cidr" {
|
|
|
|
|
description = "CIDR du subnet frontend"
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.0.1.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "backend_cidr" {
|
|
|
|
|
description = "CIDR du subnet backend"
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.0.2.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "database_cidr" {
|
|
|
|
|
description = "CIDR du subnet database"
|
|
|
|
|
type = string
|
|
|
|
|
default = "10.0.3.0/24"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "ssh_source_ranges" {
|
|
|
|
|
description = "Plages IP autorisées pour SSH"
|
|
|
|
|
type = string
|
2025-12-04 09:23:03 +00:00
|
|
|
default = "35.239.249.161/32"
|
2025-12-03 16:11:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "instance_type" {
|
|
|
|
|
description = "Type de machine pour les instances"
|
|
|
|
|
type = string
|
|
|
|
|
default = "e2-small"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variable "project_id" {
|
|
|
|
|
description = "ID du projet pour IAM (souvent le même que project_name)"
|
|
|
|
|
type = string
|
|
|
|
|
default = "western-diorama-374821"
|
|
|
|
|
}
|