NetworkConfig / TransitGatewayConfig / TransitGatewayRouteTableConfig / TransitGatewayRouteEntryConfig

Transit Gateway static route entry configuration.

Use this configuration to define static route entries in a Transit Gateway route table.

Destination IPv4 CIDR:

- destinationCidrBlock: 0.0.0.0/0
attachment:
account: Network
vpcName: Network-Inspection

Destination IPv6 CIDR:

- destinationCidrBlock: ::/0
attachment:
account: Network
vpcName: Network-Inspection

Destination prefix list:

- destinationPrefixList: accelerator-pl
attachment:
vpnConnectionName: accelerator-vpn

Blackhole IPv4 route:

- destinationCidrBlock: 1.1.1.1/32
blackhole: true

Blackhole IPv6 route:

- destinationCidrBlock: fd00::/8
blackhole: true
interface ITransitGatewayRouteEntryConfig {
    attachment?:
        | ITransitGatewayRouteTableVpcEntryConfig
        | ITransitGatewayRouteTableDxGatewayEntryConfig
        | ITransitGatewayRouteTableVpnEntryConfig
        | ITransitGatewayRouteTableTgwPeeringEntryConfig;
    blackhole?: boolean;
    destinationCidrBlock?: string;
    destinationPrefixList?: string;
}

Properties

The target Transit Gateway attachment for the route table entry. Supported attachment types include:

  • VPC
  • Direct Connect Gateway
  • VPN
  • Transit Gateway Peering

CAUTION: Changing the attachment type or target after initial deployment creates a new route table entry. To avoid core pipeline failures, use multiple core pipeline runs to 1) delete the existing route entry and then 2) add the new route entry.

Note: Leave undefined if specifying a blackhole destination.

TransitGatewayRouteTableVpcEntryConfig TransitGatewayRouteTableDxGatewayEntryConfig TransitGatewayRouteTableVpnEntryConfig

blackhole?: boolean

(OPTIONAL) Enable to create a blackhole for the destination CIDR. Leave undefined if specifying a VPC destination.

destinationCidrBlock?: string

The destination IPv4/v6 CIDR block for the route table entry.

Use IPv4/v6 CIDR notation, i.e. 10.0.0.0/16, fd00::/8. Leave undefined if specifying a destination prefix list.

destinationPrefixList?: string

The friendly name of a prefix list for the route table entry.

This is the logical name property of a prefix list as defined in network-config.yaml. Leave undefined if specifying a CIDR destination.

PrefixListConfig