Clean Up Resources
Clean Up Resources
ℹ️ Information: Excellent!!! Congratulations on completing this lab. Now let’s clean up the resources to avoid incurring charges on your AWS account.
Delete EC2 instances
⚠️ Warning: Ensure you have saved all important data before deleting the instances.
- Access EC2 Management Console
- On the left navigation pane, select Instances
- Select all EC2 Instances related to the lab
- Click Instance State
- Click Terminate (delete) instance


Delete VPC Peering Connection
- Access VPC Management Console
- On the left navigation pane, select Peering Connections
- Tick the VPC Peering Connection related to the lab
- Click Actions
- Select Delete VPC Peering Connection

- Tick Delete related route table entries
- Type
delete - Select Delete

Delete Security Groups
- Access EC2 Management Console
- On the left navigation pane, select Security Groups
- Select all Security Groups related to the lab
- Click Actions
- Click Delete security groups
- Type
delete - Click Delete

💡 Pro Tip: Deleting a CloudFormation Stack will automatically delete all resources created by that stack.
- Access CloudFormation Management Console
- On the left sidebar, select Stacks
- Sequentially check the CloudFormation Stacks related to the lab and select Delete
- In the prompt, select Delete stack
- Wait a few minutes until CloudFormation completely removes all resources
