Clean up resources

You would clean up resources in the following order:

Delete S3 bucket

  1. Go to the management interface of the S3 service
  • Click on S3 bucket s3-instancerole-xxxx.
  • Click Empty.

Role

  1. Enter permanently delete to confirm, then click Empty to delete all data in S3 bucket. Role
  2. Click the S3 bucket s3-instancerole-xxxx, then click Delete. Role
  3. Enter the bucket name then click Delete bucket to delete the S3 bucket. Role

Delete EC2 Instance

  1. Go to EC2 service management interface
  • Click on the Instance we created for the lab.
  • Click Instance state.
  • Click Terminate instance , then click Terminate to confirm. Role
  1. Go to IAM service management interface
  • Click Users
  • Click on user IAMAccessKey.
  • Click Delete. Role
  • Choose Deactive access key Role
  • Type confirm and click Delete user Role
  1. Click Roles tab.
  • Enter ec2 to find the role we created.
  • Click on role EC2RoleS3Upload.
  • Click Delete. Enter the role name EC2RoleS3Upload and click Delete to delete the IAM Role. Role