Premium Hands-on labbeginnerblue teamAWS
Control Access to S3 Data with Bucket Policies
Learn why S3 bucket policies matter, how they work, how they differ from IAM policies, and when to use each.
- 13 guided tasks
- Terminal in the browser

Scenario
The lab account holds an S3 bucket and a role named AssumableS3Role. The role must be able to list, read, and upload the bucket's objects, but it must not change the bucket's settings. At the moment the bucket policy denies the role. Use the AWS CLI to prove that the role is blocked, then write and upload a bucket policy that gives it the access it needs.
What you will learn
- Assume an IAM role with the AWS CLI and set up a profile for its temporary credentials.
- Read an S3 bucket policy and find the statement that blocks a principal.
- Write and upload a bucket policy that gives a role access to a bucket and its objects.
- Explain how a bucket policy, an identity policy, and a trust policy work together to control access to S3 data.
Hands-on lab
Control Access to S3 Data with Bucket Policies
Included in Cybr Premium.