variable "region" {
  default = "us-east-1"
}

variable "environment" {
  default = "prod"
}

variable "service_name" {
  default = "graphql-neighbouring-rights"
}

variable "application_family" {
  default = "neighbouring-rights"
}

variable "introspection" {
  default = "0"
}

variable "playground" {
  default = "0"
}

variable "task_memory" {
  default = 4096
}

variable "datadog_memory" {
  default = 256
}

variable "NEO4J_URL" {
  default = "neo4j+s://prod-neo4j-cluster.theorchard.io:7687"
}

variable "NEO4J_AURA_URL" {
  default = "neo4j+s://e194f55d.databases.neo4j.io"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "NEO4J_USERNAME",
    "NEO4J_PASSWORD",
    "NEO4J_AURA_USERNAME",
    "NEO4J_AURA_PASSWORD",
    "NR_DELIVERY_PASSWORD",
    "KSQL_CREDS",
    "SFORCE_REFRESH_TOKEN",
    "SFORCE_CLIENT_ID",
    "SFORCE_CLIENT_SECRET",
    "NR_OWNERSHIP_DELIVERY_PASSWORD"
  ]
}

variable "kafka_brokers" {
  type    = string
  default = "b-2.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094,b-3.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094,b-1.prod-managed-kafka-cdc.40dsdw.c6.kafka.us-east-1.amazonaws.com:9094"
}

variable "schema_registry_url" {
  default = "https://prod-schema-registry.theorchard.io"
}

variable "ksql_url" {
  default = "https://prod-ksqldb-server.theorchard.io"
}

variable "kafka_file_ingestion_topic" {
  description = "Topic name for NR fileIngestion events."
  default     = "event.nr.fileIngestion"
}

variable "max_ro_connections" {
  description = "max number of concurrent open connections to RO db instance"
  default     = 10
}

variable "max_rw_connections" {
  description = "max number of concurrent open connections to RW db instance"
  default     = 20
}

variable "dependent_applications" {
  description = "List of dependent applications"
  type        = list(string)
  default     = ["content"]
}

variable "notification_endpoints" {
  default = "@slack-graphql @slack-collections-prod-alarms"
}
variable "escalation_notification_endpoints" {
  default = "@slack-graphql @slack-collections-prod-alarms"
}

variable "team_name" {
  description = "Primary team; used for AWS resource tagging via default_tags (which takes a single team_name)."
  default     = "collections-ownership"
}

variable "additional_teams" {
  description = "Extra teams that co-own this service. Combined with team_name and passed to Datadog as `teams`. Used for services that span multiple teams."
  type        = list(string)
  default     = ["collections-performance"]
}
