Skip to main content
Room Banner
Back to all walkthroughs
Room Icon

The Quest for Least Privilege

Premium room

Learn how to scope an IAM Policy down to only the necessary actions.

medium

30 min

358

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

One of the most common tasks for anyone working in is to scope Policies to include only the necessary privileges required to complete a task. This is commonly referred to as following the Principle of Least Privilege. In this room, we will take a broadly scoped rule and whittle down access to allow the policy to do three things:

  1. Audit all Settings
  2. Launch machines in the Singapore Region
  3. Access a specific corporate bucket.

We’ll start with the default AdministratorAccess policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "*",
            "Resource": "*"
        }
    ]
}
Answer the questions below
If you are denied access while you have this policy, what type of policy is blocking you?