I have a public subnet in AWS and I have 3 instances in it ...
- WebApp01 (Elastic IP - 54.23.61.239 for example)
- WebApp02 (Private IP - 192.168.0.24)
- WebApp03 (Private IP - 192.168.0.25)
And my route table is setup as 192.168.0.0/16 -> local 0.0.0.0/0 -> Internet Gateway
I can see that the instance that has the public IP has internet access but the instances that don't have public IP are not able to access the internet.
How can I give internet access to the other instances inside the Public Subnet ?
I'm a newbie in networking and any help will be appreciated.
Just FYI : I know that creating a NAT, and then creating a separate route table with 0.0.0.0 -> NAT and associating that route with the Private Subnet gives internet access to the instances in the private subnet, but I cant figure out how to give internet access to the non public IP instances in the public subnet. Please help !