Create a route table prefix list reference using Amazon VPC Transit Gateways
You can reference a prefix list in your transit gateway route table. A prefix list is a set of one or more CIDR block entries that you define and manage. You can use a prefix list to simplify the management of the IP addresses that you reference in your resources to route network traffic. For example, if you frequently specify the same destination CIDRs across multiple transit gateway route tables, you can manage those CIDRs in a single prefix list, instead of repeatedly referencing the same CIDRs in each route table. If you need to remove a destination CIDR block, you can remove its entry from the prefix list instead of removing the route from every affected route table.
When you create a prefix list reference in your transit gateway route table, each entry in the prefix list is represented as a route in your transit gateway route table.
For more information about prefix lists, see Prefix lists in the Amazon VPC User Guide.
To create a prefix list reference using the console
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/
. -
In the navigation pane, choose Transit Gateway Route Tables.
-
Select the transit gateway route table.
-
Choose Actions, Create prefix list reference.
-
For Prefix list ID, choose the ID of the prefix list.
-
For Type, choose if traffic to this prefix list should be allowed (Active) or dropped (Blackhole).
-
For Transit gateway attachment ID, choose the ID of the attachment to which to route traffic.
-
Choose Create prefix list reference.
To create a prefix list reference using the AWS CLI
Use the create-transit-gateway-prefix-list-reference