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

variable "environment" {
  default = "dev"
}

# leaving this generic as we may add more lambdas down the line, for other es indices
variable "service_name" {
  default = "lambda-es-documents"
}

variable "application_family" {
  default = "insights"
}


variable "vpc_id" {
  default = "vpc-34dbfd51"
}

variable "vpc_subnet_ids" {
  type        = list(string)
  description = "VPC subnet IDs where the lambdas will execute"
  default     = ["subnet-b649dfef", "subnet-44c19a21"]
}

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

variable "trigger_msk_cluster_uuid" {
  description = "MSK cluster uuid"
  default     = "194e93a4-1a4e-4e96-85bd-99b4ebce8df0-11"
}

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

# These are the topics that the lambda will listen for events on
# it seems like a lot, but most of these will be empty most of the time.
# The very active ones are cdc.artRelations.releases, cdc.musicGraph.track and
# cdc.artRelations.artistInfo, and we will filter events on the consumer side
# as we only care about the ones that are relevant to properties on the product document
variable "products_msk_topics" {
  default = [
    "cdc.artRelations.releases",
    "cdc.musicGraph.track",
    "cdc.artRelations.artistInfo",
    "cdc.artRelations.vendor",
    "cdc.artRelations.project",
    "cdc.artRelations.release_subgenre",
    "cdc.artRelations.companyBrand",
  ]
}

# we put the finished docs onto this topic which is consumed by the es sink
# which is found here: dev/kafka-infra/elasticsearch_sink/indices/products.tf
variable "product_docs_es_topic" {
  default = "stream.artRelations.release.es"
}

