- Lab
- A Cloud Guru
Managing AWS IAM User Permissions Using Groups and Policies
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 development team 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). You will group users and assign permissions for the developer group using policies.
Path Info
Table of Contents
-
Challenge
Create a Customer-Managed Policy
- Navigate to IAM using the Services menu or the unified search bar.
- Below IAM Resources, select Users to view the existing users. You should see cloud_user as well as 3 developer users.
- From the left dashboard menu, click Policies to create a new policy with developer access.
- Click Create Policy.
- Select the Visual editor tab.
- Fill in the policy permissions for DynamoDB:
- Service: Select Choose a service, then search for and select DynamoDB.
- Actions: Below Manual actions, select All DynamoDB actions (dynamodb:*).
- Resources: Select All resources.
- Click Add additional permissions.
- Fill in the policy permissions for Lambda:
- Service: Select Choose a service, then search for and select Lambda.
- Actions: Below Manual actions, select All Lambda actions (lambda:*).
- Resources: Select All resources.
- Click Add additional permissions.
- Fill in the policy permissions for S3:
- Service: Select Choose a service, then search for and select S3.
- Actions: Below Manual actions, select All S3 actions (s3:*).
- Resources: Select All resources.
- Click Add additional permissions.
- Fill in the policy permissions for API Gateway:
- Service: Select Choose a service, then search for and select API Gateway.
- Actions: Below Manual actions, select All API Gateway actions (apigateway:*).
- Resources: Select All resources.
- Click Next: Tags. You won't need to add any tags for this lab.
- Click Next: Review.
- In the Name field, enter onlinebookstore-dev-developergroup-fullaccess-iam-policy.
- Click Create policy.
NOTE: If successfully created, a green banner will appear on the top of the screen
-
Challenge
Create a Group Controlled via a Customer-Managed Policy and Assign Users to a Group
- From the left dashboard menu, select User groups.
- Click Create group.
- In the User group name field, enter Developers.
- In the Add users to the group - Optional section, select the following user names to assign the developers to this group:
- developer-1
- developer-2
- developer-3
- In the Attach permissions policies- Optional section, select the policy you just created: onlinebookstore-dev-developergroup-fullaccess-iam-policy.
- Click Create group. You have now created a policy that gives full access to DynamoDB, Lambda, S3, and API Gateway, and you've created a Developers group to grant developers access to the policy.
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.