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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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.
- 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.
- 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.)