resource "aws_route_table" "rtb-0626848bf70278d68" {
  tags = {
    Name = "ORCHARD-P-INGRESS-RT"
  }

  tags_all = {
    Name = "ORCHARD-P-INGRESS-RT"
  }

  vpc_id = "vpc-064428099e05f9a71"
}

resource "aws_route_table" "rtb-08a941793d7ab217d" {
  route {
    cidr_block         = "10.0.0.0/8"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block                = "10.120.0.0/16"
    vpc_peering_connection_id = "pcx-0b497676cc5d01476"
  }

  route {
    cidr_block         = "10.250.2.64/27"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  tags = {
    Business-Unit = "Digital-Supply-Chain"
    Business-unit = "Switchboard"
    Environment   = "Prod"
    Name          = "ORCHARD-P-RDS-RT"
    Project-Code  = "Switchboard"
    Project-Name  = "Switchboard"
    Project-code  = "SME-200-0306A"
    Region        = "us-east-1"
    VPC           = "sme-orch-switchboard-vpc-stage"
  }

  tags_all = {
    Business-Unit = "Digital-Supply-Chain"
    Business-unit = "Switchboard"
    Environment   = "Prod"
    Name          = "ORCHARD-P-RDS-RT"
    Project-Code  = "Switchboard"
    Project-Name  = "Switchboard"
    Project-code  = "SME-200-0306A"
    Region        = "us-east-1"
    VPC           = "sme-orch-switchboard-vpc-stage"
  }

  vpc_id = "vpc-064428099e05f9a71"
}

resource "aws_route_table" "rtb-092ebbfc29c3538a2" {
  route {
    cidr_block = "0.0.0.0/0"
    gateway_id = "igw-0c8b08bcc040b0cf0"
  }

  tags = {
    Name = "ORCHARD-P-FNET-RT"
  }

  tags_all = {
    Name = "ORCHARD-P-FNET-RT"
  }

  vpc_id = "vpc-064428099e05f9a71"
}

resource "aws_route_table" "rtb-0b0899e43e4322d71" {
  #checkov:skip=CKV2_AWS_44: Ensure AWS route table with VPC peering does not contain routes overly permissive to all traffic
  route {
    cidr_block     = "0.0.0.0/0"
    nat_gateway_id = "nat-00a8eef36523e5c6b"
  }

  route {
    cidr_block         = "10.0.0.0/8"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block                = "10.120.0.0/16"
    vpc_peering_connection_id = "pcx-0b497676cc5d01476"
  }

  route {
    cidr_block                = "10.11.107.64/26"
    vpc_peering_connection_id = "pcx-0b555e554f8156e8a"
  }

  route {
    cidr_block         = "146.215.208.0/20"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "162.49.0.0/16"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block                = "172.29.0.0/22"
    vpc_peering_connection_id = "pcx-0c466153065367837"
  }

  route {
    cidr_block                = "10.100.0.0/16"
    vpc_peering_connection_id = "pcx-035da1660a1564711"
  }

  route {
    cidr_block         = "172.29.16.0/21"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "172.34.24.128/25"
    vpc_peering_connection_id = "pcx-08c13375539a3d466"
  }

  route {
    cidr_block         = "172.34.27.0/24"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "172.34.29.0/25"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "192.168.0.0/16"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  tags = {
    Business-Unit = "Digital-Supply-Chain"
    Business-unit = "Switchboard"
    Environment   = "Prod"
    Name          = "ORCHARD-P-PRV-RT"
    Project-Code  = "Switchboard"
    Project-Name  = "Switchboard"
    Project-code  = "SME-200-0306A"
    Region        = "us-east-1"
    VPC           = "sme-orch-switchboard-vpc-stage"
  }

  tags_all = {
    Business-Unit = "Digital-Supply-Chain"
    Business-unit = "Switchboard"
    Environment   = "Prod"
    Name          = "ORCHARD-P-PRV-RT"
    Project-Code  = "Switchboard"
    Project-Name  = "Switchboard"
    Project-code  = "SME-200-0306A"
    Region        = "us-east-1"
    VPC           = "sme-orch-switchboard-vpc-stage"
  }

  vpc_id = "vpc-064428099e05f9a71"
}

resource "aws_route_table" "rtb-0c1266cdb9e39a55c" {
  #checkov:skip=CKV2_AWS_44: Ensure AWS route table with VPC peering does not contain routes overly permissive to all traffic
  route {
    cidr_block = "0.0.0.0/0"
    gateway_id = "igw-0c8b08bcc040b0cf0"
  }

  route {
    cidr_block         = "10.0.0.0/8"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "146.215.208.0/20"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "162.49.0.0/16"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block                = "172.29.0.0/22"
    vpc_peering_connection_id = "pcx-0c466153065367837"
  }

  route {
    cidr_block         = "172.29.16.0/21"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "172.34.27.0/24"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  route {
    cidr_block         = "192.168.0.0/16"
    transit_gateway_id = "tgw-0c05530bb9c4c4a11"
  }

  tags = {
    Business-Unit = "Digital-Supply-Chain"
    Business-unit = "Switchboard"
    Environment   = "Prod"
    Name          = "ORCHARD-P-PUB-RT"
    Project-Code  = "Switchboard"
    Project-Name  = "Switchboard"
    Project-code  = "SME-200-0306A"
    Region        = "us-east-1"
    VPC           = "sme-orch-switchboard-vpc-stage"
  }

  tags_all = {
    Business-Unit = "Digital-Supply-Chain"
    Business-unit = "Switchboard"
    Environment   = "Prod"
    Name          = "ORCHARD-P-PUB-RT"
    Project-Code  = "Switchboard"
    Project-Name  = "Switchboard"
    Project-code  = "SME-200-0306A"
    Region        = "us-east-1"
    VPC           = "sme-orch-switchboard-vpc-stage"
  }

  vpc_id = "vpc-064428099e05f9a71"
}
