Log into your AWS account.
Go to CloudFormation, then go to Stacks.
Choose the name of the stack you want to delete, then click "Delete".
Go to your S3 console.
There should be two buckets available for the stack. Select one of the two buckets. The bucket name will be the stack name plus a random number.
Click on "Empty".
Another window will appear for confirmation. Type "permanently delete" in the box, and click on the "Empty" button.
Repeat the same process for other bucket.
Delete both of the buckets from the console.
Select the VPC that needs to be deleted. You can find the VPC ID in the stack output section, as shown below.
Delete the VPC from the VPC console.
During delition of VPC, this will show network interface dependencies that are in use, Remove those network interfaces manually.
Check all the in-user interfaces.
After removing all the interfaces manually, you can re-try to delete the VPC.
After deleting the VPC, you can now remove the stack again. This time, it will be removed with all the resources.
If you face any issues in following these steps, you can always reach out to us at [email protected]