Cleanup Resources
Overview
ℹ️ Information: After completing the workshop, it’s important to properly clean up all AWS resources to avoid ongoing charges. This section guides you through the systematic removal of all resources created during this workshop.
Delete Auto Scaling Group
- Navigate to the EC2 Console
- In the left navigation pane, scroll down and select Auto Scaling Groups
- Select the Auto Scaling Group fcaj-asg
- Click the Actions button at the top right of the screen
- Choose Delete

Delete Load Balancer
- In the EC2 Console, on the left navigation pane, select Load Balancers
- Select the Load Balancer fcaj-alb
- Click the Actions butto
- Choose Delete load balancer

Delete Target Group
- In the EC2 Console, on the left navigation pane, select Target Groups
- Select the Target Group fcaj-tg
- Click the Actions button
- Choose Delete

Delete Launch Template
- In the EC2 Console, on the left navigation pane, select Launch Templates
- Select the Launch Template fcaj-tg
- Click the Actions button
- Choose Delete template

⚠️ Warning: Ensure you’ve terminated all instances using this launch template before deletion to avoid potential errors.
Deregister AMI
- In the EC2 Console, on the left navigation pane, select AMIs
- Select the AMI fcaj-ami
- Click the Actions button
- Choose Deregister AMI

💡 Pro tip: After deregistering an AMI, remember that its associated EBS snapshots will still exist and may incur charges. Consider deleting these snapshots separately if they’re no longer needed.
Terminate EC2 Instance
- In the EC2 Console, on the left navigation pane, select Instances
- Select the fcaj-instance instance
- Click the Instance state button
- Choose Terminate (delete) instance

🔒 Security Note: Terminating an instance permanently deletes its instance store volumes. If you have important data, ensure it’s backed up before proceeding.
Delete RDS Database
- Navigate to the RDS console
- On the left navigation pane, select Databases
- Select the database instance fcaj-db-instance
- Click Modify

- In the Modify DB Instance section, scroll down and uncheck Enable deletion protection
- Click Continue

- In the Schedule modifications section:
- Select Apply immediately
- Click Modify DB instance

- After the modification completes:
- Select the database instance fcaj-db-instance
- Click the Actions button
- Choose Delete

- In the confirmation dialog:
- Select I acknowledge that upon instance deletion, automated backups, including system snapshots and point-in-time recovery, will no longer be available
- Enter
delete me in the confirmation field - Click Delete

⚠️ Warning: This action permanently deletes your database and all its data. If you need to preserve any information, create a final snapshot before deletion.
Delete Subnet Group
ℹ️ Information: You must wait the process of deletion database successully before to do this action
- In the RDS console, select Subnet groups from the left navigation pane
- Select the subnet group fcaj-subnet-group
- Click Delete

ℹ️ Information: After completing these steps, verify in the AWS Billing Dashboard that there are no unexpected charges related to resources from this workshop. Some resources like EBS snapshots or CloudWatch logs may persist unless explicitly deleted.
Delete Snapshots
ℹ️ Information: When you create an AMI, AWS creates snapshots of every volume attached to the instance and links them to AMI.
You will be charged for the storage of these snapshots until you deregister the AMI and delete the snapshots
- In the EC2 console, select Snapshots
- Select the snapshot associated with the AMI fcaj-ami
- Click Actions and choose Delete Snapshot

Delete Internet Gateway
- In the VPC console, select Internet gateways
- Select the Internet Gateway fcaj-igw
- Click Actions and choose Detach from VPC

Delete VPC
- In the VPC console, select Your VPCs
- Select the VPC fcaj-vpc
- Click Actions and choose Delete VPC
