amazon-web-servicesamazon-vpcaws-route-table

Routing Tables in AWS


Whats the difference between Explicit subnet associations and Subnets without explicit associations to route tables in AWS?

I read the documentation but didnt understand, can someone give me an example of whats the difference between this two types?


Solution

  • First of all, every subnet must have a route table association (otherwise VPC would not know how to route traffic).

    If you don't explicitly associate a route table with a given subnet, then that subnet is automatically associated with the VPC's main route table.

    So, you could, for example, have:

    Think of the main route table like a default route table. If you don't explicitly associate a subnet with a given route table then it's implicitly associated, by default, with the main route table.

    See subnet route tables.