Step 3. Configure Routing
If you have created a peering connection between two different VPCs, you must add routes to the route tables associated with the subnets of the accepter and requester VPC to enable private traffic between those VPCs.
To add a route to a route table, do the following:
- In the VPC console, navigate to Virtual Private Cloud > Route tables, choose the route table and click Actions > Edit routes.
- Complete the Edit routes wizard:
- Click Add routes.
- In the Destination field, specify the range of IPv4 addresses to which the network traffic in the peering connection must be directed.
The IPv4 address range must be specified in the CIDR notation (for example, 18.104.22.168/24).
- In the Target field, select the Peering Connection option and specify the ID of the peering connection.
To obtain the ID, you can look it up on the Peering connections page in the VPC console.
- Click Save changes.