The VPC staging has the route tables web (for web-a and web-b) and data (for data-a and data-b). The web subnets must become public; the data subnets must not.
-
Keep the VPC's id in
VPC:shVPC=$(aws ec2 describe-vpcs --filters Name=tag:Name,Values=staging --query "Vpcs[0].VpcId" --output text) -
Create an internet gateway named
staging, keeping its id inIGW, and attach it to the VPC. -
Decide which route table needs the route to the gateway, keep its id in
RT, and add the route. -
Read that table's routes to check.