简体   繁体   中英

should i remove nat gateway after installing database in private subnet?

I am using aws private subnet for hosting database. I have NAT gateway attached to my private route table.It seems very costly. I don't use NAT gateway for other reason. Should I remove & delete the NAT gateway from my private route table after installing my database in private subnet?

And after removing it can I reattach new NAT gateway in future to my private route table without any problem if necessary.

A NAT gateway is needed for resources on your private subnets to access the internet. Note things like S3 access etc will also go over the internet by default. Look at private links if needed.

So if you application/resources don't need access to internet feel feel to remove it. Do also note that if all subnets are private, you need to think about SSH access if that is needed.

A NAT gateway can be recreated and attached to your VPC without issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM