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

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

variable "service_name" {
  default = "sagemaker-notebook-bi-elisa-notebook"
}

variable "application_family" {
  default = "business-intelligence"
}


variable "https_listener_port" {
  description = "Port for HTTPS listener."
  default     = "443"
}

variable "lst_secret_arns" {
  description = "List of Secret ARNs"
  type        = list(string)
  default = [
    "arn:aws:secretsmanager:us-east-1:103233932089:secret:dev/sagemaker-notebook-instance/SNOWFLAKE_PASSWORD-gvImRH"
  ]
}

variable "dev_https_listener_allow_cidr_blocks" {
  description = "CIDR blocks from which to allow HTTPS for dev environments"
  type        = list(string)

  default = [
    "10.30.0.0/22",
    "10.40.0.0/22",
    "192.168.32.0/24",
    "192.168.33.0/24",
    "192.168.40.0/22",
  ]
}

variable "https_listener_public_allow_cidr_blocks" {
  description = "CIDR blocks from which to allow HTTPS for public services"
  type        = list(string)
  default     = []
}

locals {
  https_listener_allow_cidr_blocks = {
    dev = concat(
      var.dev_https_listener_allow_cidr_blocks,
      var.https_listener_public_allow_cidr_blocks,
    )
  }
}
