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

Implementing Fine-Grained Access Control for DynamoDB
In this lab, we will create fine-grained access control IAM policies and attach them to provided IAM roles, and then test that the roles we have created are working as expected.

Lab Info
Table of Contents
-
Challenge
Create and Attach Policy for FGACUser IAM Role
- Navigate to the IAM web console.
- Select Policies.
- Click Create policy.
- Create a policy that only allows access to the attributes specified in the lab information.
- Attach the create policy to the FGACUser IAM role.
-
Challenge
Create and Attach Policy for FGACAdmin IAM Role
- Navigate to IAM web console.
- Select Policies.
- Click Create policy.
- Create a policy that provides general read access to the
pinehead_records_s2
DynamoDB table. - Attach the created policy to the FGACAdmin IAM role.
-
Challenge
Test Your Policies from the Provided EC2 Instance
-
Log in to the provided EC2 instance.
-
Run the following commands — the first should result in an
AccessDeniedException
. The last two should return 10 items each.aws dynamodb scan --table-name pinehead_records_s2 --profile fgacuser
aws dynamodb scan --table-name pinehead_records_s2 --profile fgacuser --projection-expression "artist_name,id,album_art,title"
aws dynamodb scan --table-name pinehead_records_s2 --profile fgacadmin
-
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.