Next, we create Route tables to direct our private instances to the internet. First, choose Route tables in current dashboard and choose Create Route table
Conofigure Route tables
Name: public-route-table
VPC: my-workshop-01
Choose Create route table
Next, we add subnets to our route table. Choose Subnet associations and Edit subnet associations
Choose two public subnets and Save associations
Next, we add routes to our route table. Choose Routes and Edit routes
Configurate route:
Destination: 0.0.0.0/0
Target: Internet Gateway
Target: workshop-igw-01
Choose Save Changes
Continue to add private route table for private subnets with the same process
In Subnet associations, choose our two private subnets
In Route, we route our private subnets to the internet through NAT Gateway
We also create our route table for database subnets
Choose our two private database subnets
Routing these subnets to the internet through NAT Gateway