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

variable "environment" {
  default = "prod"
}

variable "application_family" {
  default = "publishing"
}

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

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 "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 "agreement_tracker_lambda_name" {
  // full name not used due to character constraint in sentry terraform module
  default = "lambda-publishing-changelog-agree-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 "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     = "prod-managed-kafka-cdc-destination"
}

variable "trigger_msk_cluster_uuid" {
  description = "MSK cluster uuid"
  default     = "b103e027-ec75-4982-8d15-5bddc5e33831-6"
}

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 "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_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_metadataChange_topic" {
  description = "Topic that the state-recorder lambda will subscribe to and tracker lambdas will send messages to"
  default     = "event.publishing.metadataChange"
}

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

variable "changelog_state_recorder_service_name" {
  default = "changelog-state-recorder"
}

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

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