Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

4n6ir/deletedefaultvpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deletedefaultvpcs

The enabled regions for new Amazon Web Services (AWS) accounts have a default VPC deployed as standard. Any newly activated regions will have these as well leaving more networks requiring protection.

A custom resource initiates the deletion on the original deployment with regular checks daily.

  1. Detach Internet Gateway
  2. Delete Internet Gateway
  3. Delete Subnets
  4. Delete VPC

If the default VPC is in use, it will not be deleted and an error will be generatored, after Internet access has been mitigated.