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

variable "environment" {
  default = "prod"
}

variable "service_name" {
  default = "graphql-publishing"
}

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

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

variable "vpc_subnet_ids" {
  type        = list(any)
  description = "VPC subnet IDs where the lambdas will execute"
  default     = ["subnet-067a6b45b079d7296", "subnet-098b89d0c58c5693a", ]
}

variable "vpc_id" {
  type        = string
  description = "VPC ID"
  default     = "vpc-7f0e841a"
}

variable "application_family" {
  description = "Application family of which this is a component. Used for tagging"
  default     = "publishing"
}

variable "snowflake_role" {
  default = "FACTS_DB_PROD_SCHEMA_READ"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "NEO4J_AURA_URL",
    "NEO4J_AURA_USERNAME",
    "NEO4J_AURA_PASSWORD",
    "SPLIT_API_KEY",
    "KSQL_CREDS",
    "SNOWFLAKE_USER",
    "SNOWFLAKE_PASSWORD",
    "SNOWFLAKE_KEY_PASSPHRASE",
    "SNOWFLAKE_PRIVATE_KEY",
    "MYSQL_CHANGELOG_PASSWORD"
  ]
}

variable "mysql_changelog_username" {
  default = "compositions-changelog"
}

variable "mysql_changelog_db_name" {
  default = "publishing_compositions"
}

variable "mysql_changelog_hostname" {
  default = "publishing-compositions-db.theorchard.io"
}

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

variable "s3_signed_url_expiry" {
  description = "time in seconds to be the s3 signed url expired"
  default     = 1200
}
