AWS & Cloud Engineering
Reading an IAM policy: Effect, Action, Resource
An IAM policy looks like a wall of JSON, but it is a list of sentences: allow or deny, this action, on that resource. Learn to read one aloud, and learn which sentence wins when two disagree.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AWS & Cloud Engineering
- Your AWS account: root user, MFA, CLI and a billing alarmBeginner · 6 min
Most expensive beginner mistakes are not exotic hacks. They are a leaked access key or a forgotten server. Four setup steps remove most of the risk before you launch…
- IAM: users, groups, roles and policiesBeginner · 5 min
IAM answers two questions for every request: who are you, and are you allowed. Learn the four building blocks and the default, which is that nothing is allowed until…
- EC2: instances, AMIs, instance types and key pairsBeginner · 6 min
EC2 gives you a Linux server in about a minute. Four choices at launch decide what it runs, how big it is, how you get in, and what survives when you turn it off.
- Security groups: the firewall around an instanceBeginner · 6 min
Security group rules determine which inbound traffic can reach an instance; defaults differ between groups. That is why most 'I cannot connect' tickets end in the same…
- EBS volumes, snapshots and instance storeBeginner · 5 min
An EC2 instance can lose its server and keep its disk, or lose both. Which one happens depends on whether the data sits on EBS or on instance store, and on one default…
- S3: buckets, objects and public-access mistakesBeginner · 6 min
S3 stores files as objects in buckets and is private until someone changes that. Nearly every famous S3 data leak was a person changing it by accident.