
variable "environment" {
  type = string
}

variable "aws_regions" {
  type        = list(string)
  description = "List of regions in which REGIONAL rules will be created. Defaults to current region"
  default     = []
}

variable "application_family" {
  type    = string
  default = "devops"
}

variable "ip_set_prefix" {
  type    = string
  default = "gsirt-ioc-ip-set"
}

variable "rule_group_name" {
  default = "gsirt-ioc-rule-group"
  type    = string
}

variable "rule_group_capacity" {
  default = 50
}

variable "reuse_existing_ip_sets" {
  type        = bool
  description = "Use in case there are multiple environments in an account and IP sets were created in another environment first"
  default     = false
}

locals {
  aws_regions = toset(concat(var.aws_regions, [data.aws_region.current.region]))
}
