Stop 04 · IAM & Account SecurityProjects · 1/1

Least-Privilege Access for a Small Team

Part of the AWS Roadmap

In short

This project turns IAM theory into something you can show in an interview: a real access design for a small team where everyone can do their job and nobody can do much more.

A project where you set up access for an imaginary three-person team, such as a developer, a tester and a billing viewer, using IAM Identity Center permission sets or groups with the narrowest policies that still let each person work.

The jaadu hands three different coloured key cards to a cook, a cleaner and an accountant standing in a small hotel lobby.

Think of it like this

Hotel staff key cards

In a hotel, housekeeping cards open guest floors, the accountant's card opens the accounts room, and the chef's card opens the kitchen and store. Nobody gets the general manager's master card. You are designing those cards for an AWS team.

Watch it happen

Who gets what in the dev account

Riya: Developer
0
Arjun: Tester
1
Meera: Billing
2
Admin (break-glass)
3

1/5Three people, three jobs, and one emergency admin role that nobody uses daily.

The big ideas

What you need to know

Start from job roles

List what each person does each week, then map it to the smallest set of actions.

Managed policies first

AWS job function policies like ReadOnlyAccess, PowerUserAccess and Billing are a solid starting point.

Use tags in conditions

Limit actions to resources tagged env=test so testers can't touch anything else.

Review with data

IAM Access Analyzer and last-accessed information show permissions people never use, so you can remove them.

See it in code

Walk through the code

json
1{2  "Version": "2012-10-17",3  "Statement": [4    {5      "Sid": "StartStopOnlyTestInstances",6      "Effect": "Allow",7      "Action": ["ec2:StartInstances", "ec2:StopInstances", "ec2:RebootInstances"],8      "Resource": "arn:aws:ec2:ap-south-1:111122223333:instance/*",9      "Condition": {10        "StringEquals": { "aws:ResourceTag/env": "test" }11      }12    }13  ]14}

1/3Only three EC2 actions. No terminate, no launch.

An inline policy added to the Tester permission set on top of ReadOnlyAccess: testers can start, stop and reboot only instances tagged env=test in Mumbai.

Save yourself the pain

Common mistakes

Oops

Giving everyone AdministratorAccess because it is a small team.

Do this instead

Small teams have the fewest people to notice a mistake. Give job-based access and keep admin for one break-glass role.

Oops

Allowing testers to manage tags on instances.

Do this instead

If testers can add env=test to any instance, the tag condition is useless. Don't grant ec2:CreateTags broadly.

Your mission

Design and prove it

~60 min

Quick check

Why is a tag-based condition risky if testers also have ec2:CreateTags on all instances?

Go deeper

  1. 1Write the access needs for each person before creating any policy.
  2. 2Test each identity and record what it can and cannot do.
  3. 3Document the setup with screenshots and the policy JSON in a GitHub README.

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge