- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Security

Limiting Privileged User Access by Setting Permissions Boundaries in AWS IAM
In this hands-on lab scenario, you are a security engineer working for a new startup that's launching an online bookstore for rare and antique books. The founder, Kia, needs your help with setting up her system administrators with the proper access permissions. In order to provide access and ensure the proper security measures are in place, you will use AWS Identity & Access Management (IAM) to define a system administrators group and set permissions boundaries.

Lab Info
Table of Contents
-
Challenge
Create a Group Controlled via an AWS-Managed Policy and Assign Users to a Group
- Navigate to IAM.
- From the left dashboard menu, click Users to view existing users.
- Click User groups.
- Click Create group.
- For the User group name, enter "SysAdmins".
- In the Add users to the group - Optional section, select the following User name:
- sysadmin-1
- sysadmin-2
- sysadmin-3
- In the Attach permissions policies - Optional section, select the
AdministratorAccess
policy. - Click Create group.
- Review the group, and then click Create Group.
-
Challenge
Limit Privileged Users by Setting Permissions Boundaries
- Click SysAdmins under Group name.
- Click sysadmin-2.
- Click the arrow next to Permissions boundary (not set) to expand it.
- Click Set boundary.
- In the Filter policies field, type "ec2".
- Select AmazonEC2FullAccess.
- Click Set boundary.
- From the left dashboard, click Users.
- Click sysadmin-3.
- In the Filter policies field, type "s3".
- Select AmazonS3FullAccess.
- Click Set boundary.
-
Challenge
Verifying Limits on Privileged Users
Verifying S3 Limited Access on
sysadmin-3
- In the top right-hand corner, select the arrow for the dropdown menu next to your user name.
- Click Sign Out to log out as
clouid_user
. - Click Log back in.
- The IAM user name is
sysadmin-3
with a password ofh3F#dJHk323k6D
. - Click Sign In.
- Navigate to EC2.
- Click Instances (running). (NOTE: You should encounter a "not authorized to perform this operation" message.)
- Click Launch Instances.
- Click Select on Amazon Linux 2 AMI (HVM), SSD Volume Type. (NOTE: You should encounter a "not authorized to perform this operation" message.)
- Navigate back to the AWS Management Console.
- Click S3.
- Click Create bucket.
- Under General configuration, enter "acg-test-123456" for the Bucket name.
- Select
US East (N. Virgina) us-east-1
for the AWS Region. - Click Create bucket.
- In the top right-hand corner, select the arrow for the dropdown menu next to your user name.
- Click Sign Out to log out as
sysadmin-3
.
Verifying EC2 Limited Access on
sysadmin-2
- Click Log back in.
- The IAM user name is
sysadmin-2
with a password ofh3F#dJHk323k6D
. - Click Sign In.
- Navigate to S3. (NOTE: You should encounter an access denied message.)
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.