Route Table
A route table in Amazon EC2 is a set of rules, called routes, that are used to determine where network traffic is directed. Each subnet in your VPC must be associated with a route table, which controls the routing for the subnet. For more detailed information, please refer to the official AWS documentation on route tables.
Terraform Mappings:
aws_route_table.id
aws_route_table_association.route_table_id
aws_default_route_table.default_route_table_id
aws_route.route_table_id
Supported Methods​
GET
: Get a route table by IDLIST
: List all route tablesSEARCH
: Search route tables by ARN
Possible Links​
ec2-vpc
​
A route table is associated with an EC2 VPC, controlling the traffic routing within the VPC.
ec2-subnet
​
Subnets in a VPC are linked to route tables, which direct traffic from the subnet to other destinations.
ec2-internet-gateway
​
Route tables can include routes that direct traffic to an Internet Gateway, enabling communication between instances in the VPC and the internet.
ec2-vpc-endpoint
​
Route tables can be configured to route traffic to a VPC Endpoint, facilitating private connectivity to AWS services.
ec2-egress-only-internet-gateway
​
A route table may contain routes for IPv6 traffic that is directed to an Egress-Only Internet Gateway, allowing outbound internet connectivity for IPv6 instances without incoming traffic.
ec2-instance
​
Instances within a subnet are subject to the routing rules defined in the subnet's associated route table.
ec2-nat-gateway
​
Route tables can route traffic to a NAT Gateway, providing instances within private subnets the capability to connect to the internet.
ec2-network-interface
​
Routes in the route table can be configured to direct traffic to specific network interfaces, allowing customized traffic flows within the VPC.
ec2-vpc-peering-connection
​
Route tables can be used to enable routing between VPCs that are peered, facilitating inter-VPC communication through VPC Peering Connections.