Day 6: IAM Basics — Control Who Can Do What in AWS

Day 6: IAM Basics — Control Who Can Do What in AWS

Day 6: IAM Basics — Control Who Can Do What in AWS

Goal: Understand how IAM helps manage users, passwords, and permissions in AWS.


👥 What is IAM?

IAM stands for Identity and Access Management.

It helps you securely control who can access your AWS resources — like S3 buckets, EC2 instances, and more.

🧠 Think of IAM as:

“A security gatekeeper that decides who can enter, and what they’re allowed to do.”


✅ Why is IAM Important?

  • Keeps your account safe from misuse
  • Lets you create different users for your team
  • Allows you to limit access (e.g., one user can only view S3, another can launch EC2)

📖 IAM Basic Concepts (Made Simple)

TermWhat It Means
UserA person or application that logs in
GroupA collection of users with shared permissions
RoleA temporary identity for apps/services
PolicyA set of rules that define what is allowed or denied
PermissionsWhat a user can or can’t do in AWS
Root UserThe main admin — never use it for daily tasks!

🛠️ Step-by-Step: Create an IAM User

  1. Go to AWS Console → Search for IAM → Open it
  2. In the left menu, click “Users” → Click “Add users”
  3. Choose:
    • Username: (e.g., developer1)
    • Check ✅ “Access key – Programmatic access” (optional)
    • Check ✅ “Password – AWS Management Console access”
  4. Set a password (temporary is fine)
  5. On the Permissions screen:
    • Choose “Attach existing policies directly”
    • Search for AdministratorAccess (just for demo) and select it
  6. Click “Next” → “Create user”

🎉 You now have a new AWS user!


🔑 Sign in as the New User

  • IAM will give you a login link like:
    https://1234567890.signin.aws.amazon.com/console
  • Open it and log in using the new user’s credentials

Now you’re using AWS without the root account — much safer!


🔏 Policies (Very Simply)

A policy is a document that says:

“This user/group/role can or cannot do these things.”

Example:

  • Allow user to read S3
  • Deny user from deleting EC2

Policies are written in JSON (don’t worry — we’ll simplify that later).


🧪 Mini Challenge

✅ Create a second IAM user with S3 read-only access:
Use the AmazonS3ReadOnlyAccess policy.

✅ Try logging in and see if they can access S3 but not EC2.


📝 Quick Recap

  • IAM controls who can do what in AWS
  • You created users with safe access
  • You learned about users, groups, roles, policies
  • You stopped using the root account for daily work (good job!)

🔁 Navigate the Series:

⬅️ Day 5: EC2 Basics — Launch Your First Cloud Server
➡️Day 7: Amazon EBS & EFS – Learn AWS Storage Basics

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *