variable "context" {
  description = "Application and environment used to build a stable name prefix."
  type = object({
    application = string
    environment = string
  })

  validation {
    condition     = contains(["learning", "production"], var.context.environment)
    error_message = "environment must be learning or production"
  }
}
