shoc-frontend-new/terraform/variables.tf
Adam Moussa 2a106d4e9e
ci(cd): convert SPA hosting to handbook HCP and GitHub content CD
Give HCP the bucket and CloudFront with an empty origin path. GitHub owns
bucket-root sync and invalidation so merge-to-main and a human staging tag
can deploy without creating HCP runs. G13 fails PRs that mix terraform/
with deployable application files.
2026-09-17 15:55:25 -04:00

9 lines
280 B
HCL

variable "environment" {
description = "Workspace environment. HCP Terraform sets this per workspace."
type = string
validation {
condition = contains(["dev", "staging"], var.environment)
error_message = "environment must be one of: dev, staging."
}
}