Files
hapi/infra/postgres/variables.tf
T
2026-11-18 09:23:11 -05:00

61 lines
1.4 KiB
Terraform

# Variables for PostgreSQL module
variable "linode_region" {
description = "Linode region for PostgreSQL"
type = string
default = "us-east"
}
variable "linode_lke_version" {
description = "Linode Kubernetes Engine version"
type = string
default = "1.35"
}
variable "linode_node_type" {
description = "Linode node type for PostgreSQL pools"
type = string
default = "g6-standard-4"
}
variable "linode_object_storage_cluster" {
description = "Linode Object Storage cluster"
type = string
default = "us-east-1"
}
variable "linode_object_storage_region" {
description = "Linode region for Object Storage (used as 'region' in v2 provider)"
type = string
default = "us-east"
}
variable "object_storage_access_key" {
description = "Object Storage access key"
type = string
}
variable "object_storage_secret_key" {
description = "Object Storage secret key"
type = string
sensitive = true
}
variable "tags" {
description = "Common tags for all resources"
type = map(string)
default = {
ManagedBy = "terraform"
Project = "hapi"
}
}
variable "environment" {
description = "Deployment environment (staging or production)"
type = string
validation {
condition = contains(["staging", "production"], var.environment)
error_message = "Environment must be 'staging' or 'production'."
}
}