
variable "aws_region" {
  type    = string
  default = "us-east-1"
}

variable "environment" {
  type    = string
  default = "shared"
}

variable "service_name" {
  type        = string
  description = "The name of the service. The combination of this and environment must be unique across all Atlantis instances."
  default     = "atlantis"
}

variable "application_family" {
  type    = string
  default = "devops"
}

variable "account_group" {
  description = "The name of the group which the account belongs to (used to derive resource dependency names)"
  default     = "orcd"
}

variable "container_port" {
  type    = string
  default = "4141"
}

variable "atlantis_terraform_version" {
  type    = string
  default = "1.3.7"
}

variable "secrets_manager_secret_names" {
  type        = list(string)
  description = "List of secrets to create"
  default = [
    "GH_WEBHOOK_SECRET",
    "SENTRY_API_KEY",
    "SNOWFLAKE_USER",
    "SNOWFLAKE_PRIVATE_KEY",
    "SNOWFLAKE_PRIVATE_KEY_PASSPHRASE",
    "FIVETRAN_APIKEY",
    "FIVETRAN_APISECRET",
    "GOOGLE_CREDENTIALS",
    "CLOUDFLARE_API_TOKEN",
    "GH_APP_ID",
    "GH_APP_INSTALLATION_ID",
    "GH_APP_KEY",
  ]
}

variable "github_organization" {
  type    = string
  default = "theorchard"
}

variable "additional_allowed_cidr_blocks" {
  description = "CIDR blocks to allow access to in addition to GitHub CIDR blocks"
  default = [
    "207.237.185.0/26",  # Allow traffic routed through the NY VPN
    "12.170.130.192/28", # Allow traffic routed through the Ashburn Primary
    "4.4.95.0/27",       # Allow traffic routed through the Ashburn Secondary
    "4.15.150.128/27",   # Allow traffic routed through the 25 Madison Lumen (Primary)
    "4.15.150.64/27",    # Allow traffic routed through the  25 Madison Lumen (Secondary)
  ]
}

variable "atlantis_image_uri" {
  type        = string
  description = "The URI of the Atlantis image to use initially"
  default     = "086679231553.dkr.ecr.us-east-1.amazonaws.com/atlantis:latest"
}

variable "github_repositories" {
  type        = list(string)
  description = "List of github org/repositories to trigger atlantis for"
  default = [
    "theorchard/terraform-infra",
  ]
}

variable "external_id" {
  type        = string
  description = "The external ID to use when assuming roles in other accounts"
  default     = "KCHmf0h0hm5kUzqqLJ4SfA4HzhXXySA8"
}

