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

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

variable lambda_name {
  default = "lambda-gda-signup"
}

variable lambda_handler {
  default = "src.app.handler"
}

variable vpc_security_group_ids {
  type        = list
  description = "Security group IDs for the VPC where the lambdas will execute"
  default     = ["sg-351b5751"]
}

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

variable msk_cluster_name {
  description = "MSK cluster name to read from."
  default     = "dev-managed-kafka-artist-diy"
}

variable kafka_topic {
  description = "Kafka topic to send messages to."
  default     = "event.gdaSubmitApplication"
}

variable salesforce_record_type_id {
  description = "Salesforce record type id"
  default = "0124W0000007nnYQAQ"
}

variable datadog_enabled {
  description = "Enabled DataDog monitoring."
  default = true
}

variable auth0_authorizer_issuer {
  description = "Auth0 tenant URL"
  default = "https://dev-orchard.auth0.com/"
}

variable auth0_authorizer_audience {
  description = "Auth0 audience"
  default = "https://auth0-jwt-authorizer"
}

variable domain_name {
  description = "Domain name for the API Gateway"
  default = "gda-gateway.dev.theorchard.io"
}

variable acm_certificate_domain {
  description = "ACM certificate domain for the API Gateway"
  default = "*.dev.theorchard.io"
}

variable route53_zone_name {
  description = "Route53 zone name for the API Gateway domain"
  default = "dev.theorchard.io"
}


variable dlq_enabled {
  description = "Enable lambda DLQ"
  default = false
}


variable api_gateway_access_logs_enabled {
  description = "Enable API Gateway access logs."
  default = true
}


variable datadog_function_destination_lambda_name {
  description = "Name of datadog function for shipping cloudwatch logs"
  default     = "DatadogLambdaFunction"
}

locals {
  datadog_function_destination_arn   = "arn:aws:lambda:${var.aws_region}:${data.aws_caller_identity.current.account_id}:function:${var.datadog_function_destination_lambda_name}"
}
