NatGateway nat-xxx is in state failed and hence failed to stabilize Detailed failure message: Network vpc-xxx has no Internet gateway attached
A public NAT has to be deployed in VPC or subnet with a public route table
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⚙️ Check out my series on Automating Cybersecurity Metrics | Code.
🔒 Related Stories: Bugs | AWS Security | Secure Code | Network Security
💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you deploy a NAT and get this error:
Resource handler returned message: “Error occurred during operation ‘NatGateway nat-xxx is in state failed and hence failed to stabilize. Detailed failure message: Network vpc-xxx has no Internet gateway attached’.” (RequestToken: xxx, HandlerErrorCode: GeneralServiceException)
That means you’ve likely tried to deploy a public NAT into a private VPC.
I explain public and private VPCs and Subnets here.
Create a public subnet with and Internet Gateway in the Route table for a NAT. Don’t add a route table for the subnets you want to be private but add a route to the NAT Gateway to access the Internet.
About to publish some code to show how to do that and have related posts here in my posts on Network Security:
Follow for updates.
Teri Radichel | © 2nd Sight Lab 2023
About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight LabNeed Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for PresentationFollow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
