2025-12-03 16:21:37 +01:00
|
|
|
|
# Commentaire
|
2025-12-03 16:11:42 +01:00
|
|
|
|
variable "project_name" {
|
|
|
|
|
|
type = string
|
|
|
|
|
|
description = "but3-iac"
|
|
|
|
|
|
default = "Automaticsearch"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable "region" {
|
|
|
|
|
|
type = string
|
|
|
|
|
|
description = "Région dans laquelle déployer les ressources"
|
2025-12-03 16:37:22 +01:00
|
|
|
|
default = "europe-west9"
|
2025-12-03 16:11:42 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable "frontend_cidr" {
|
|
|
|
|
|
description = "CIDR for frontend subnet"
|
|
|
|
|
|
type = string
|
|
|
|
|
|
default = "10.0.1.0/24"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable "backend_cidr" {
|
|
|
|
|
|
description = "CIDR for backend subnet"
|
|
|
|
|
|
type = string
|
|
|
|
|
|
default = "10.0.2.0/24"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable "database_cidr" {
|
|
|
|
|
|
description = "CIDR for database subnet"
|
|
|
|
|
|
type = string
|
|
|
|
|
|
default = "10.0.3.0/24"
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable "ssh_source_ranges" {
|
|
|
|
|
|
type = string
|
|
|
|
|
|
description = "Plages d’adresses autorisées à se connecter en SSH"
|
|
|
|
|
|
default = "0.0.0.0/0"
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable "project_id"{
|
|
|
|
|
|
description = "id du projet"
|
|
|
|
|
|
type = string
|
|
|
|
|
|
default = "automaticsearch-477610"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|