AWS-Logo_White-Color
1.
Preparation
1.1
Create EC2 Instance
1.2
Create S3 bucket
2.
Use access key
2.1
Generate IAM user and access key
2.2
Use access key
3.
IAM role on EC2
3.1
Create IAM role
3.2
Using IAM role
4.
Clean up resources
More
AWS Study Group - Blog
AWS Study Group - FB Group
English
Tiếng Việt
Clear History
Workshop
Cloud Journey
Last Updated
19-09-2026
Team
Gia Hưng
Quang Hiếu
Granting authorization for an application to access AWS services with an IAM role.
> Clean up resources
Clean up resources
You would clean up resources in the following order:
Delete S3 bucket
Go to
the management interface of the S3 service
Click on S3 bucket
s3-instancerole-xxxx
.
Click
Empty
.
Enter
permanently delete
to confirm, then click
Empty
to delete all data in S3 bucket.
Click the S3 bucket
s3-instancerole-xxxx
, then click
Delete
.
Enter the bucket name then click
Delete bucket
to delete the S3 bucket.
Delete EC2 Instance
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.
Go to
IAM service management interface
Click
Users
Click on user
IAMAccessKey
.
Click
Delete
.
Choose
Deactive access key
Type
confirm
and click
Delete user
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.