Clean up resources

Introduction to AWS Resource Cleanup

ℹ️ Overview After completing the lab, cleaning up AWS resources is a crucial step to:

  • Avoid unnecessary costs
  • Maintain a clean and organized AWS environment
  • Adhere to best practices for resource management

IAM Resource Cleanup Steps

⚠️ Important Note Before deleting IAM resources, ensure:

  • You have logged out of sessions for the users to be deleted
  • No AWS resources depend on these IAM entities
  • You have backed up any critical data (if needed)
  1. Delete IAM User:
    • Access the AWS Management Console
    • Navigate to the IAM service
    • Select Users
    • Select the user associated with the lab
    • Click Delete

AWS IAM

  1. Confirm IAM User deletion:
    • Carefully check the information of the user to be deleted
    • Enter “confirm” to confirm
    • Click Delete to complete

AWS IAM

  1. Delete IAM User Group:
    • Return to the IAM service
    • Select User groups
    • Select the group associated with the lab, here it is AdminGroup
    • Click Delete

AWS IAM

  1. Confirm IAM User Group deletion:
    • Carefully check the information of the group to be deleted
    • Enter the group name “AdminGroup”
    • Click Delete to complete

💡 Pro Tip Use AWS CloudFormation or AWS CDK to automate resource creation and deletion in future labs

AWS IAM

  1. Delete IAM Roles:
    • Return to the IAM service
    • Select Roles
    • Select the role associated with the lab, here it is AdminRole
    • Click Delete

AWS IAM

  1. Confirm IAM Roles deletion:
    • Carefully check the information of the roles to be deleted
    • Enter the role name “AdminRole”
    • Click Delete to complete

AWS IAM

🔒 Security Note Cleaning up unused IAM resources enhances security by minimizing potential access points to your AWS account