All hands-on labs

Premium Hands-on labintermediateblue teamAWS

Create an IAM Role for Secure S3 Access

Create and configure an IAM role to provide read-only access to a specific prefix within an S3 bucket, following security best practices and the principle of least privilege. You'll work with IAM roles, customer-managed policies, and permissions boundaries while learning to troubleshoot access issues in a realistic scenario that simulates common workplace tasks. Capture the flag by downloading the flag.txt file within the S3 bucket.

  • 5 guided tasks
  • Capture the flag

Scenario

This account holds an S3 bucket, and that bucket has a file in the engineering prefix. You sign in as an IAM user that cannot read objects in the bucket. Build an IAM role named S3ReadAccessRole that can read only that prefix, then assume the role and read the flag.

What you will learn

  • Create an IAM role that carries a permissions boundary.
  • Find the name of an S3 bucket in your account.
  • Write an IAM policy that reads only one prefix in one bucket.
  • Cut a broad S3 policy down to least privilege.
  • Assume a role and read an object with it.
Hands-on lab

Create an IAM Role for Secure S3 Access

Included in Cybr Premium.