Default VPCs, with their default NACLs – all need to be removed.

To delete default VPCs in a region, one needs to first delete any IgWs, any NAT gateways etc. within that VPC. Ensure that no resource is using those default resources – and then, you are on your way.

github

Here is a bash script that will delete the default VPC from all regions.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.