variable "aws_profile" {
  type        = string
  description = "The name of the AWS profile as set in the shared credentials file."
}

variable "aws_region_id" {
  type        = string
  description = "The id of the region in AWS"
  default     = "us-east-1"
}



variable "env_prefix" {
  type        = string
  description = "Environment prefix to use."
}

variable "env_suffix" {
  type        = string
  description = "suffix to use with the resources"
}

variable "api_version" {
  type        = string
  description = "Tag of the API container image."
}

variable "nginx_version" {
  type        = string
  description = "Tag of the nginx container image."
}

variable "clone_api_db" {
  default = false
}

variable "copy_api_db_from" {
  type        = string
  description = "From what environment should we copy API database"
  validation {
    condition     = contains(["dev", "qa", "stage", "prod"], var.copy_api_db_from)
    error_message = "Valid values for this parameter are dev, qa, stage or prod."
  }
}

variable "clone_decibel_db" {
  default = false
}

variable "copy_decibel_db_from" {
  type        = string
  description = "From what environment should we copy Decibel database"
  validation {
    condition     = contains(["dev", "qa", "stage", "prod"], var.copy_decibel_db_from)
    error_message = "Valid values for this parameter are dev, qa, stage or prod."
  }
}
