variable "aws_region" {
  default     = "us-east-1"
  description = "AWS region"
}

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

variable "service_name" {
  default = "code-push-server"
}

variable "application_family" {
  default = "mobile"
}

variable "team_name" {
  type    = string
  default = "mobile-suite"
}

variable "route53_hosted_zone" {
  default = "qa-mobile-code-push.pdestorage.com"
}

variable "code_push_server_bucket_name" {
  default = "code-push-server-go-bundles-us-east-1"
}

variable "code_push_server_replication_destination_bucket_name" {
  default = "code-push-server-go-bundles-us-west-2"
}

variable "cloudfront_logging_bucket" {
  description = "Bucket to use for cloudfront logging"
  default     = "shared-orcd-cloudfront-logs.s3.amazonaws.com"
}

variable "failover_criteria_status_codes" {
  type        = list(number)
  description = "List of status codes that comprise S3 origin failover criteria"
  default = [
    403,
    500,
    502,
    503,
  ]
}

variable "s3_origin_group_name" {
  description = "The name of the S3 origin group for CloudFront"
  default     = "S3-code-push-server-go-bundles"
}

variable "container_port" {
  description = "The port the container listens on"
  default     = 3000
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "GITHUB_CLIENT_ID",
    "GITHUB_CLIENT_SECRET",
    "MICROSOFT_CLIENT_ID",
    "MICROSOFT_CLIENT_SECRET",
    "PG_PASSWORD",
  ]
}

variable "notification_endpoints" {
  description = "Datadog notification endpoints"
  type        = string
  default     = ""
}

variable "escalation_notification_endpoints" {
  description = "Datadog escalation notification endpoints"
  type        = string
  default     = ""
}
