variable "aws_region" {
  type        = string
  default     = "us-east-1"
  description = "The AWS region to create the repository in"
}

variable "environment" {
  description = "The name of the environment"
  default     = "prod"
}

variable "application_family" {
  description = "Name of application family"
  default     = "devops"
}

variable "account_group" {
  description = "The account group"
  default     = "supply-chain"
}

variable "vpc_flow_logs_bucket" {
  default = "shared-orcd-vpc-logs"
}

variable "vpc_routing_destination_prefix_lists" {
  type        = list(string)
  description = "list of prefix lists names that should be routable from the private subnets"
  default = [
    "prod-orcd-private-subnet-prefix-list",
    "shared-orcd-private-subnet-prefix-list",
    "vpn-ny",
  ]
}

variable "firewall_rule_group_id" {
  description = "sony_ioc_rule_group"
  default     = "rslvr-frg-1764658298884585"
}

variable "team_name" {
  default     = "devops"
}

locals {
  internal_routes = [
    for tuple in setproduct(toset(module.networking-vpc.private_route_table_ids), toset(data.aws_ec2_managed_prefix_lists.required_routes.ids)) : {
      route_table_id = tuple[0]
      prefix_list_id = tuple[1]
    }
  ]
}
