# Required
variable "environment" {
  description = "Available values: dev, qa, prod."
}

variable "input_bucket_name" {
  description = "Bucket name for raw assets. (minus the environment prefix)"
  default     = "orcd-asset-transcoder-input"
}

variable "output_buckets_names" {
  type = list(string)
}

variable "input_bucket_cors" {
  type = list(object({
    allowed_headers = list(string)
    allowed_methods = list(string)
    allowed_origins = list(string)
    expose_headers  = list(string)
    max_age_seconds = number
    }
  ))
  description = "List of CORS rules for input assets bucket"
  default     = []
}

variable "fargate_task_role" {
  description = "ARN for the Fargate task role, which will be allowed to execute assumeRole required by upload-token"
}

variable "additional_roles" {
  type        = list(string)
  description = "User ARNs who are allowed to execute assumeRole required by upload-token"
  default     = []
}

variable "logging_target_bucket" {
  type        = list(string)
  default     = []
  description = "Target bucket for s3 logs"
}
