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

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

variable "service_name" {
  description = "Name of service."
  type        = string
  default     = "ows-metadata-sqs-scaling"
}

variable "application_family" {
  description = "Application family to which this service belongs."
  type        = string
  default     = "devops"
}

variable "sqs_queue_name_regex" {
  description = "SQS queue name regex to get the total number of messages."
  type        = string
  default     = "prod-(delivery|encoding)"
}

variable "ecs_cluster_name" {
  description = "ECS cluster name to get the number of tasks running."
  type        = string
  default     = "prod-ows-metadata"
}

variable "ecs_service_name" {
  description = "ECS service name to get the number of tasks running."
  type        = string
  default     = "prod-ows-metadata"
}

variable "log_level" {
  description = "Application verbosity level: ERROR, WARNING or INFO."
  type        = string
  default     = "INFO"
}

variable "lambda_schedule_enabled" {
  description = "Enables application execution via CloudWatch Events schedule."
  type        = bool
  default     = true
}

variable "lambda_schedule_expression" {
  description = "Application execution CloudWatch Event schedule expression."
  type        = string
  default     = "rate(1 minute)"
}

variable "lambda_concurrency" {
  description = "Lambda function concurrent execution limit."
  type        = number
  default     = 1
}

variable "lambda_timeout" {
  description = "Lambda function timeout in seconds."
  type        = number
  default     = 55
}

variable "vpc_id" {
  description = "VPC for Lambda functions."
  type        = string
  default     = "vpc-7f0e841a"
}

variable "vpc_subnet_ids" {
  description = "VPC subnets for Lambda functions."
  type        = list(string)
  default     = ["subnet-073c5ca5affc267b5", "subnet-098b89d0c58c5693a"]
}

variable "user_name" {
  description = "IAM user that will be used to test permissions."
  type        = string
  default     = "dpinchukov-test"
}
