AWS routes

Create a file called and use it to create routes for both public and private subnets, create the below resources. Ensure they are properly tagged.

  • aws_route_table
  • aws_route
  • aws_route_table_association

Now if you run terraform plan and terraform apply it will add the following sources to AWS in multi-az set up: