This scenario is simple, created a VPC (CIDR > 172.16.0.0/16) in AWS Management Console, created 2 subnets in it.
- Public (CIDR > 172.16.1.0/24)
- Private (CIDR > 172.16.2.0/24)
Public route is set on Public subnet via Route-Table & Internet-Gateway. Both subnets can connect to each other logically, as these are in same VPC.
I want to allow private subnet to connect to the internet via Public subnet, hence it has public route, so any traffic from private subnet, that is not intended to public subnet, will route to the internet.
Can it be accomplished and how really? Do I need to add anything to Route-Table or NACLs or at add anything at indivisual level of instances?