Audit and Enforce Least-Privilege IAM Permissions
Amazon 👶 Easy AWSCloud
Beginner Mode

Start your terminal to use beginner mode.

Scenario

A security audit has flagged the IAM user app-deployer for having AdministratorAccess policy with far more permissions than needed. The user only needs access to:

  • S3: Read (GetObject) and Add objects (PutObject), list buckets (ListBucket).
  • CloudWatch Logs: Create log groups (CreateLogGroup), log streams (CreateLogStream), and put log events (PutLogEvents).

Task

  1. Inspect the current policies attached to the app-deployer user
  2. Remove the overly broad AdministratorAccess policy
  3. Create a custom managed policy named AppDeployerPolicy that grants only the required permissions listed above
  4. Attach the new policy to the app-deployer user

Note: You can use either the AWS Management Console or AWS CLI to complete this task.

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

AWS Console Environment

Launch an AWS environment to solve this challenge.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →