https://pulumi.com logo
#aws
Title
# aws
f

famous-garage-15683

08/14/2020, 9:11 PM
I created a VPC just by doing
new awsx.ec2.Vpc("name", {})
. It looks like it created a private subnet and a public subnet by default and the way it secured the private subnet is with a NAT Gateway. Why use a NAT Gateway instead of just using a Network ACL? Is there some advantage to NAT Gateway that makes it worth the extra cost?
b

billowy-army-68599

08/14/2020, 9:24 PM
NAT Gateways aren't just for security, they route traffic from the private subnet out to the public internet
if you find the NAT gateway too expensive, you can achive the same result with a NAT instance, which is smaller but needs more setup
f

famous-garage-15683

08/14/2020, 11:31 PM
Ah, got it. Cost isn't that much of a concern, but I just have an RDS instance in the private subnet right now, so it sounds like I don't need a NAT gateway or instance in that case