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

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

variable "application_family" {
  description = "The name of the associated application family."
  default     = "integrations"
}

variable "service_name" {
  description = "The name of the associated application."
  default     = "bulk-metadata-ingester"
}

variable "service_prefix" {
  description = "The abbreviation of the application name."
  default     = "bmi"
}

variable "lambda_default_timeout" {
  description = "Default value for timeout"
  default     = "300"
}

variable "lambda_concurrent_executions" {
  description = "Number of reserved concurrent executions for lambda function"
  default     = 20
}

variable "logger_dsn" {
  description = "Fluentd logger DSN"
  default     = "udp://qa-fluentd-applications-udp.theorchard.io:5160"
}

variable "datadog_enabled" {
  description = "Whether or not to attach datadog secretsmanager IAM policy"
  default     = true
}

variable "bulk_metadata_ingester_prefix" {
  description = "S3 bucket folder prefix for Bulk metadata Ingester"
  default     = "bulk-metadata"
}

variable "bulk_metadata_ingester_input_bucket" {
  description = "S3 bucket for Bulk metadata Ingester data (minus prefix)"
  default     = "bulk-metadata-ingester"
}

variable "sfn_bulk_metadata_ingester_definition_file" {
  description = "Bulk Metadata ingester SFN definition"
  default     = "sfn-bulk-metadata-ingester.json"
}

variable "bulk_metadata_ingester_cloudwatch_event_rule_pattern_file" {
  description = "JSON file representing the cloudwatch S3 event rule"
  default     = "sfn-bulk-metadata-ingester-cloudwatch-event-rule.json"
}

variable "oa_user" {
  description = "OA user ID for graphql authentication"
  default     = "oa:2075"
}

variable "graphql_gateway_url" {
  description = "GraphQl gateway URL"
  default     = "https://qa-graphql-gateway.theorchard.io/graphql"
}

variable "rds_rw_user" {
  description = "User used to read and write to RDS"
  default     = "ddex-ingester-RW"
}

variable "secrets_manager_secret_names" {
  description = "List of secrets manager secrets to create"
  type        = list(string)
  default = [
    "rds_service_user_password",
    "rds_read_write_password",
    "rds_read_only_password"
  ]
}
