Files
but3-iac/terraform/environments/dev/variable.tf
2025-12-04 09:34:25 +01:00

71 lines
1.5 KiB
HCL

variable "project_name" {
description = "project name"
type = string
default = "nom de projet"
}
variable "project_id" {
description = "project id"
type = string
default = "dazzling-alpha-477917-q9"
}
variable "region" {
description = "region "
type = string
default = "europe-west9"
}
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 = "ssh"
type = string
default = "0.0.0.0/0"
}
variable "frontend_subnet_id" {
description = "frontend subnet id"
type = string
default = module.network.subnet_ids["frontend"]
}
variable "backend_subnet_id" {
description = "backend subnet id"
type = string
default = module.network.subnet_ids["backend"]
}
variable "database_subnet_id" {
description = "database subnet id"
type = string
default = module.network.subnet_ids["database"]
}
variable "zone" {
description = "zone"
type = string
default = var.region +"-b"
}
variable "instance_type" {
description = "instance_type"
type = string
default = "e2-small"
}