- Lab
- A Cloud Guru
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.
Path 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.)
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.