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 management console
- In the left navigation pane, scroll down and select Auto Scaling Groups
- Select the Auto Scaling Group FCJ-Management-ASG
- Click the Actions button at the top right of the screen
- Choose Delete

Delete Load Balancer
- In the EC2 management console, on the left navigation pane, select Load Balancers
- Select the Load Balancer FCJ-Management-LB
- Click the Actions button
- Choose Delete load balancer

Delete Target Group
- In the EC2 management console, on the left navigation pane, select Target Groups
- Select the Target Group FCJ-Management-TG
- Click the Actions button
- Choose Delete

Delete Launch Template
- In the EC2 management console, on the left navigation pane, select Launch Templates
- Select the Launch Template FCJ-Management-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 management console, on the left navigation pane, select AMIs
- Select the AMI FCJ-Management-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 management console, on the left navigation pane, select Instances
- Select the FCJ-Management 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 fcj-management-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 fcj-management-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
- In the RDS console, select Subnet groups from the left navigation pane
- Select the subnet group fcj-management-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.