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

variable "environment" {
  default = "qa"
}

variable "application_family" {
  default = "publishing"
}

variable "slack_alert_channel" {
  description = "Slack channels for all DD alerts and build notifications"
  default     = "@slack-publishing-alerts"
}

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

variable "lambda_memory_size" {
  description = "Memory size for the lambda function"
  default     = "512"
}

variable "composition_tracker_lambda_name" {
  // full name not used due to character constraint in sentry terraform module
  default = "lambda-publishing-changelog-comp-tracker"
}

variable "writer_publisher_tracker_lambda_name" {
  // full name not used due to character constraint in sentry terraform module
  default = "lambda-publishing-changelog-wp-tracker"
}

variable "agreement_tracker_lambda_name" {
  // full name not used due to character constraint in sentry terraform module
  default = "lambda-publishing-changelog-agree-tracker"
}

variable "state_recorder_lambda_name" {
  default = "lambda-publishing-changelog-state-recorder"
}

variable "report_populator_lambda_name" {
  default = "lambda-publishing-changelog-report-populator"
}

variable "row_builder_lambda_name" {
  default = "lambda-publishing-changelog-row-builder"
}

variable "report_compiler_lambda_name" {
  default = "lambda-publishing-changelog-report-compiler"
}

variable "trigger_msk_cluster_name" {
  description = "MSK cluster name"
  default     = "qa-managed-kafka-cdc-destination"
}

variable "trigger_msk_cluster_uuid" {
  description = "MSK cluster uuid"
  default     = "9d840e30-6e78-4bf7-8ab2-8d788cff806d-6"
}

variable "kafka_brokers" {
  type    = string
  default = "b-6.qa-managed-kafka-cdc-d.2kgc64.c6.kafka.us-east-1.amazonaws.com:9094,b-5.qa-managed-kafka-cdc-d.2kgc64.c6.kafka.us-east-1.amazonaws.com:9094,b-4.qa-managed-kafka-cdc-d.2kgc64.c6.kafka.us-east-1.amazonaws.com:9094,b-3.qa-managed-kafka-cdc-d.2kgc64.c6.kafka.us-east-1.amazonaws.com:9094,b-2.qa-managed-kafka-cdc-d.2kgc64.c6.kafka.us-east-1.amazonaws.com:9094,b-1.qa-managed-kafka-cdc-d.2kgc64.c6.kafka.us-east-1.amazonaws.com:9094"
}

variable "pub_songwriter_topic" {
  description = "Topic for songwriters that the Writer-Publisher lambda will subscribe to"
  default     = "cdc.musicGraphV5.publishingSongWriter"
}

variable "pub_publisher_topic" {
  description = "Topic for publishers that the Writer-Publisher lambda will subscribe to"
  default     = "cdc.musicGraphV5.publishingPublisher"
}

variable "pub_composition_topic" {
  description = "Topic for compositions that the Composition lambda will subscribe to"
  default     = "cdc.musicGraphV5.publishingComposition"
}

variable "pub_hasSoundRecording_topic" {
  description = "Topic for hasSoundRecording relationships that the composition lambda will subscribe to"
  default     = "cdc.musicGraphV5.hasSoundRecording"
}

variable "pub_agreement_topic" {
  description = "Topic for agreements that the Agreement lambda will subscribe to"
  default     = "cdc.musicGraphV5.publishingAgreement"
}

variable "pub_hasAgreement_topic" {
  description = "Topic for hasAgreement relationships that the Agreement lambda will subscribe to"
  default     = "cdc.musicGraphV5.hasAgreement"
}

variable "pub_compositions_rds_name" {
  default = "publishing-compositions"
}

variable "pub_compositions_s3_name" {
  default = "publishing-compositions"
}

variable "prod_compositions_s3_name" {
  default = "prod-publishing-compositions"
}

variable "pub_metadataChange_topic" {
  description = "Topic that the state-recorder lambda will subscribe to and tracker lambdas will send messages to"
  default     = "event.publishing.metadataChange"
}

variable "state_machine_name" {
  default = "publishing-compositions-changelog-report"
}


variable "wp_tracker_failure_sns_topic" {
  description = "Notify if the lambda fails after retries."
  default     = "lambda-publishing-changelog-wp-tracker-failed"
}

variable "comp_tracker_failure_sns_topic" {
  description = "Notify if the lambda fails after retries."
  default     = "lambda-publishing-changelog-comp-tracker-failed"
}

variable "notification_email" {
  description = "Notify if the lambda fails on this email."
  default     = "jmarais@sonymusic-pde.com"
}

