Files
but3-iac/tp-cloud/terraform/environments/dev/variables.tf

56 lines
1.1 KiB
Terraform
Raw Normal View History

2025-12-03 17:15:51 +01:00
# définissez toutes les variables nécessaires avec des valeurs par défaut appropriées.
variable "project_name" {
description = "Nom du projet"
type = string
default = "Projet1"
}
variable "region" {
description = "Region du projet"
type = string
default = "europe-west2"
}
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" {
description = ""
type = string
default = "0.0.0.0/0"
}
variable "project_id" {
description = "ID du projet"
type = string
default = "projet1-478713"
2025-12-04 09:31:27 +01:00
}
variable "instance_type" {
description = "Type d'instance pour les VM"
type = string
default = "e2-small"
}
variable "zone" {
description = "Zone GCP"
type = string
default = "europe-west2-a"
}