variable "environment" {
  description = "Name of the environment, e.g. dev, qa, prod"
  default     = "qa"
}

variable "service_name" {
  default = "graphql-switchboard"
}

variable "account_group" {
  description = "Account Group"
  default     = "orcd"
}

variable "application_family" {
  description = "Application Family"
  default     = "devops"
}

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

variable "vpc_public_subnet_transit_gateway_routes" {
  type        = set(string)
  description = "List of CIDR blocks to route to the transit gateway in the public route tables"
  default     = []
}

variable "vpc_private_subnet_transit_gateway_routes" {
  type        = set(string)
  description = "List of CIDR blocks to route to the transit gateway in the private route tables"
  default = [
    "10.100.0.0/16",
  ]
}

variable "vpc_routing_prefix_list_names" {
  type        = list(string)
  description = "list of prefix lists names that should be routable from all subnets"
  default = [
    "vpn-ny",
  ]
}

variable "vpc_peering_routes" {
  type        = map(string)
  description = "Routes to add to the VPC peering route tables"
  default = {
    "10.12.240.0/24"   = "pcx-081e15090e7473f33"
    "10.12.250.0/24"   = "pcx-0af1f7d5294ddbcb2"
    "10.11.113.128/26" = "pcx-0fa856d441b13222c"
  }
}

locals {
  vpc_peering_routes = [
    for cidr_block, peering_connection in var.vpc_peering_routes : {
      cidr_block         = cidr_block
      peering_connection = peering_connection
    }
  ]
}
