42 lines
897 B
HCL
42 lines
897 B
HCL
# Terraform variables for The Order infrastructure
|
|
|
|
variable "environment" {
|
|
description = "Environment name (dev, stage, prod)"
|
|
type = string
|
|
validation {
|
|
condition = contains(["dev", "stage", "prod"], var.environment)
|
|
error_message = "Environment must be dev, stage, or prod."
|
|
}
|
|
}
|
|
|
|
variable "aws_region" {
|
|
description = "AWS region"
|
|
type = string
|
|
default = "us-east-1"
|
|
}
|
|
|
|
variable "project_name" {
|
|
description = "Project name"
|
|
type = string
|
|
default = "the-order"
|
|
}
|
|
|
|
variable "domain_name" {
|
|
description = "Domain name for the application"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "enable_monitoring" {
|
|
description = "Enable monitoring and observability"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "enable_logging" {
|
|
description = "Enable centralized logging"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|