Resource Cleanup on AWS Cloud

Resource Cleanup on AWS Cloud

In this section, you will clean up resources on AWS Cloud to avoid incurring unnecessary costs.

1. Delete EC2 Instance

  • Access the EC2 console
  • In the navigation pane, select Instances
  • Select the EC2 Instance related to the lab
  • Select Instance State > Terminate (delete)
  • Confirm by clicking Terminate (delete) instance

EC2 Terminate EC2 Terminate

2. Delete 2 AMIs

  • In the EC2 console, select AMIs from the navigation pane
  • Select the AMI related to the lab
  • Select Actions > Deregister AMI
  • In the Deregister AMI window, check Delete associated snapshots and click Deregister AMI to confirm complete deletion of the backup and related data.

Deregister AMI Deregister AMI

3. Delete Volume

  • In the EC2 console, select Volumes from the navigation pane
  • Select the Volume related to the lab
  • Select Actions > Delete Volume
  • Confirm by clicking Delete

Delete Volume Delete Volume

4. Delete S3 Bucket

  • Access the S3 console
  • Select the bucket related to the lab
  • Select Empty to delete all objects in the bucket

S3 Empty

  • Enter permanently delete to confirm and click Empty

S3 Confirm Empty

  • After the bucket is empty, select Delete

S3 Delete

  • Enter the bucket name to confirm the deletion and click Delete bucket

S3 Confirm Delete

  • Repeat for all buckets related to the lab
  • Enter permanently delete to confirm and click Empty

S3 Confirm Delete

  • Enter the bucket name to confirm the deletion and click Delete bucket

S3 Confirm Delete

5. Keep IAM Role for Future Use

For the IAM Role vmimport, you can retain it for future use.