Files
but3-iac/terraform/modules/compute/variables.tf

61 lines
1.2 KiB
Terraform
Raw Normal View History

2025-12-04 09:33:27 +01:00
variable "project_id" {
type = string
description = "GCP project id"
}
2025-12-04 09:33:27 +01:00
variable "region" {
type = string
2025-12-04 09:33:27 +01:00
description = "GCP region"
}
variable "zone" {
type = string
2025-12-04 09:33:27 +01:00
description = "GCP zone (ex: europe-west1-b)"
}
variable "instance_type" {
type = string
description = "Machine type for instances (ex: e2-medium)"
default = "e2-medium"
}
2025-12-04 10:05:03 +01:00
variable "network_id" {
2025-12-04 09:33:27 +01:00
type = string
2025-12-04 10:05:03 +01:00
description = "VPC network ID"
}
variable "frontend_subnet_id" {
type = string
2025-12-04 09:33:27 +01:00
description = "Frontend subnet self_link"
}
variable "backend_subnet_id" {
type = string
2025-12-04 09:33:27 +01:00
description = "Backend subnet self_link"
}
variable "database_subnet_id" {
type = string
2025-12-04 09:33:27 +01:00
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"
}
2025-12-04 09:33:27 +01:00
variable "labels" {
type = map(string)
default = {}
2025-12-04 11:43:33 +01:00
}
variable "instance_count" {
type = number
description = "Number of VM instances to create"
2025-12-04 09:33:27 +01:00
}