forked from pierront/but3-iac
Update
This commit is contained in:
@@ -1,27 +1,56 @@
|
||||
# compute/variables.tf
|
||||
|
||||
variable "instance_type" {
|
||||
description = "Type d'instance GCE à utiliser"
|
||||
variable "project_id" {
|
||||
type = string
|
||||
description = "GCP project id"
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
type = string
|
||||
description = "GCP region"
|
||||
}
|
||||
|
||||
variable "zone" {
|
||||
description = "Zone dans laquelle déployer les instances"
|
||||
type = string
|
||||
description = "GCP zone (ex: europe-west1-b)"
|
||||
}
|
||||
|
||||
variable "instance_type" {
|
||||
type = string
|
||||
description = "Machine type for instances (ex: e2-medium)"
|
||||
default = "e2-medium"
|
||||
}
|
||||
|
||||
variable "network" {
|
||||
type = string
|
||||
description = "VPC network self_link or name"
|
||||
}
|
||||
|
||||
variable "frontend_subnet_id" {
|
||||
description = "ID du sous-réseau frontend"
|
||||
type = string
|
||||
description = "Frontend subnet self_link"
|
||||
}
|
||||
|
||||
variable "backend_subnet_id" {
|
||||
description = "ID du sous-réseau backend"
|
||||
type = string
|
||||
description = "Backend subnet self_link"
|
||||
}
|
||||
|
||||
variable "database_subnet_id" {
|
||||
description = "ID du sous-réseau database"
|
||||
type = string
|
||||
description = "Database subnet self_link"
|
||||
}
|
||||
|
||||
variable "ssh_pub_key" {
|
||||
type = string
|
||||
description = "SSH public key to add as metadata for OS Login fallback (optional)"
|
||||
default = ""
|
||||
}
|
||||
|
||||
variable "service_account_email" {
|
||||
type = string
|
||||
description = "Service account email to attach to instances"
|
||||
}
|
||||
|
||||
variable "labels" {
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
Reference in New Issue
Block a user