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

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

variable "platform" {
  type = map(string)

  default = {
    name        = "Infra"
    prefix      = "dev"
    environment = "Development"
  }
}

variable "tags" {
  type = map(string)

  default = {
    name                = "Delphi"
    prefix              = "CMN"
    environment         = "Common"
    project             = "Infrastructure"
    short_project_name  = "INFRA"
    short_platform_name = "DLP"
  }
}

variable "jenkins_vpc" {
  type        = map(string)
  description = "vpc attributes"

  default = {
    cidr_second_octet = "53"
  }
}

variable "public_subnets" {
  type    = list(number)
  default = [10, 11, 12]
}

variable "private_subnets" {
  type    = list(number)
  default = [13, 14, 15]
}

variable "jenkins_key_pair_name" {
  type    = string
  default = "dev-infra-jenkins-default"
}

variable "projectgroup_whitelist" {
  type        = list(object({ cidr = string, description = string }))
  description = "List of CIDRs which will be whitelisted in addition to standard whitelist module list"
  default     = []
}

variable "jenkins_whitelist" {
  type        = list(object({ cidr = string, description = string }))
  description = "List of CIDRs which will be whitelisted in addition to standard whitelist module list"
  default     = []
}

variable "github_ip_addr" {
  type        = list(object({ cidr = string, description = string }))
  description = "List of Gihub ip addresses, could be checked here https://api.github.com/meta"
}

variable "external_https_access" {
  type        = list(object({ cidr = string, description = string }))
  description = "List of CIDRs which will be whitelisted in addition to standard whitelist module list"
  default     = []
}

variable "artistapp_team" {
  type        = list(object({ cidr = string, description = string }))
  description = "List of CIDRs which will be whitelisted in addition to standard whitelist module list"
  default     = []
}
