Now you have created a VPC, but you are unable to delete it.
Not able to delete a VPC
Getting ready
Before deleting a VPC, all the resources attached to the VPC have to be terminated or released.
How to do it...
- Check whether the NAT gateway is detached.
- Disassociate the Elastic IP.
- Remove dependencies between security groups
- Terminate the EC2 instance.
- Terminate the RDS instance and the DB subnet group.
- Delete the Virtual Private Gateway.
- All the VPN attachments will be terminated.
- Delete the Internet Gateway.
- Delete the Route Tables.