Create and Assume Roles in AWS

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

AWS Identity and Access Management (IAM) is a service that allows AWS customers to manage user access and permissions for the accounts and available APIs/services within AWS. IAM can manage users, security credentials (such as API access keys), and allow users to access AWS resources.

In this lab, we discover how security policies affect IAM users and groups, and we go further by implementing our own policies while also learning what a role is, how to create a role, and how to assume a role as a different user.

By the end of this lab, you will understand IAM policies and roles, and how assuming roles can assist in restricting users to specific AWS resources.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the Correct S3 Restricted Policies and Roles

Perform the following tasks:

  1. Create the S3RestrictedPolicy IAM policy. Ensure only the appconfig buckets are accessible.
  2. Create the S3RestrictedRole IAM role.
  3. Revoke the AmazonS3FullAccess access policy from the developergroup.
  4. Attach the S3RestrictedPolicy to the dev1 user.
Configure IAM So the dev3 User Can Assume the Role

Perform the following tasks:

  1. Create the AssumeS3Policy IAM policy.
  2. Attach the AssumeS3Policy to the dev3 user.
  3. Assume the S3RestrictedRole as the dev3 user.

Additional Resources

Ensure you are operating out of the N. Virginia (us-east-1) region.

  • dev1 password: 3Kk6!AY36^5h1rolJYb@C
  • dev2 password: 3Kk6!AY36^5h1rolJYb@C
  • dev3 password: 3Kk6!AY36^5h1rolJYb@C

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?