Clean up 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.

Terminate EC2 Instance

  1. In the EC2 Console, on the left navigation pane, select Instances
  2. Select the ec2-instance instance
  3. Click the Instance state button
  4. Choose Terminate (delete) instance

Terminate EC2 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

  1. Navigate to the RDS console

  2. On the left navigation pane, select Databases

  3. Select the database instance db-instance.

  4. Click Modify Terminate EC2 Instance

  5. In the Modify DB Instance section, scroll down and uncheck Enable deletion protection

  6. Click Continue

Terminate EC2 Instance

  1. In the Schedule modifications section:

    • Select Apply immediately
    • Click Modify DB instance Terminate EC2 Instance
  2. Choose db-instance > Action > 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 Delete RDS Database
  3. We follow the same steps as above to delete fcaj-2. Delete RDS Database

⚠️ 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

  1. In the RDS console, select Subnet groups from the left navigation pane
  2. Select the subnet group rds-subnet-group
  3. Click Delete Delete RDS Database

ℹ️ 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 Internet Gateway

  1. In the VPC console, select Internet gateways
  2. Select the Internet Gateway rds-igw
  3. Click Actions and choose Detach from VPC Delete RDS Database

Delete VPC

  1. In the VPC console, select Your VPCs
  2. Select the VPC rds-vpc
  3. Click Actions and choose Delete VPC Delete RDS Database