PureDevOps Community

AWS - NAT Gateway vs Internet Gateway

Why we need NAT Gateway and Internet Gateway in AWS?

Hi Samaya,

An Internet Gateway allows resources within your VPC to access the internet.

NAT Gateway allows resources in a private subnet to access the internet (think yum updates, external database connections, wget calls, OS patch, etc)
It only works one way. The internet at large cannot get through your NAT to your private resources unless you explicitly allow it.

Please refer this discussion too.


1 Like