Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
AWS Cloud Computing Cloud Computing: From Zero to Production IAM Module 2 — AWS Fundamentals security

IAM — Users, Roles, and Policies Basics

Reviewed & accurate
AI Summary

What You Will Learn

Beginner

  • What IAM is and why it matters
  • Users, groups, roles, and policies
  • The principle of least privilege
AWS IAM HierarchyAWS Account (Root)IAM UsersPeople, servicesIAM RolesTemporary accessIAM GroupsCollections of usersPolicies (JSON)attached to
IAM hierarchy: Account contains Users, Roles, Groups — all controlled by Policies (JSON)
EntityWhat it is
UserA person or application that needs access
GroupCollection of users (e.g., "Developers")
RoleTemporary access for AWS services or cross-account
PolicyJSON document defining permissions
Least privilege
Give users the minimum permissions they need. Never give s3:* when they only need s3:GetObject on one bucket.
Policy examplejson
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["s3:GetObject"],
    "Resource": "arn:aws:s3:::my-bucket/*"
  }]
}

Practical Exercise

Go to IAM in AWS Console
Create a new IAM user
Create a group called "Developers"
Add the user to the group
Attach a read-only S3 policy to the group

Key Takeaways

  • IAM controls who can do what in AWS.
  • Users = people/apps. Groups = collections. Roles = temporary access.
  • Policies are JSON documents defining permissions.
  • Always follow least privilege — minimum permissions needed.
  • Never use root account for daily work.
Previously: Lesson 12 covered S3.
Today: You learned: Manage who can do what in AWS.
Next: Lesson 14 covers VPC.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments