What is Destination and Target in Route table (AWS VPC)?

Ananda-SteelTownBoy picture Ananda-SteelTownBoy · Nov 19, 2017 · Viewed 11.2k times · Source

What is Destination and Target in Route table? I can see Destination and target can be configured to Internet gateway, is there any other use case ?

Answer

sudo picture sudo · Nov 19, 2017

Destination => IP address/CIDR range .
Target => Where you want to send the traffic for the specified destination (e.g. if the destination is my local subnet, mention target as "local")

The Internet gateway is one of the targets (e.g. routing traffic to the internet). Other options for the target would be

  • NAT Gateway
  • Virtual Private Gateway
  • VPC endpoint
  • VPC peering connection etc. depending on your architecture

Route table document explains it well.