Resource Cleanup on AWS Cloud
Resource Cleanup on AWS Cloud
In this section, you will learn how to clean up resources on AWS Cloud to prevent incurring unnecessary costs.
1. Delete the EC2 Instance Created in the Lab
- Access the EC2 Management Console.
- On the left navigation bar, select Instances.
- Select all EC2 instances related to the lab.
- Click on Actions.
- Choose Manage Instance State.
- Select Terminate.
- Confirm by clicking Change State.
2. Delete the Security Group Created with EC2 Instance
- Access the EC2 Management Console.
- On the left navigation bar, go to Security Groups.
- Select all security groups related to the lab.
- Click on Actions.
- Choose Delete security groups.
- Confirm deletion by clicking Delete.
3. Delete AMI
- Access the EC2 Management Console.
- On the left navigation bar, navigate to AMIs.
- Select the AMI related to the lab.
- Click on Actions.
- Choose Deregister.
- Confirm by clicking Continue.
4. Delete S3 Bucket
- Access the S3 Management Console.
- On the left navigation bar, select Buckets.
- Choose the bucket related to the lab and either delete all its content or select Empty from the options.
- When prompted for emptying the bucket, type “permanently delete” in the provided box.
- Select Exit.
- Tick the just-deleted bucket and choose Delete.
- Confirm by typing the bucket name in the empty box when prompted.
- Select Delete Bucket.
- Repeat this process for all buckets related to the lab.
5. Keep IAM Role for Future Use
The IAM Role vmimport can be retained for future use.