variable "region" {
  description = "AWS region"
  type        = string
  default     = "us-east-1"

  validation {
    condition     = contains(["us-east-1", "us-west-2"], var.region)
    error_message = "Only us-east-1 and us-west-2 are supported (Bedrock model availability)."
  }
}

variable "environment" {
  description = "Deployment environment (e.g. qa, prod)"
  type        = string
  default     = "prod"
}

variable "service_name" {
  description = "Service name used in resource naming"
  type        = string
  default     = "ows-coda"
}

variable "application_family" {
  description = "Application family to which ows-coda belongs"
  type        = string
  default     = "coda"
}

variable "team_name" {
  description = "Team responsible for ows-coda"
  type        = string
  default     = "coda"
}

#######
# Auth0
#######

variable "auth0_audience" {
  description = "Auth0 API audience identifier for ows-coda (shared workstation audience)"
  type        = string
  default     = "https://workstation.theorchard.com/api"
}

variable "auth0_client_id" {
  description = "Auth0 client ID"
  type        = string
  default     = "XD36TauADM8m4K8o6MdmVPg7TK1Vewht"
}

variable "auth0_domain" {
  description = "Auth0 tenant domain"
  type        = string
  default     = "coda.theorchard.com"
}
