AWS & Cloud Engineering
Least privilege: from AdministratorAccess to a scoped policy
A role made for a one-day migration still holds AdministratorAccess six months on. A repeatable way to replace it with the permissions the job really uses, without breaking the job.
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
- IAM policy evaluation: identity, resource, boundary and explicit denyBeginner · 6 min
The role allows s3:GetObject and the request is still denied. Six policy types get a vote, and the error message tells you which one said no.
- Roles and STS AssumeRole, including cross-accountBeginner · 5 min
A CI job needs production access for twenty minutes. Instead of a key that lives for years, it borrows a role: how the two halves of the handshake work and where they…
- IAM permissions boundaryBeginner · 4 min
IAM permissions boundary sets maximum permitted identity permissions.
- Lambda: triggers, limits and concurrencyBeginner · 5 min
Lambda has no servers to size, so its limits show up as throttling instead. One busy function can use the whole Region's concurrency and make an unrelated payment…
- ECS services: keeping N tasks runningBeginner · 6 min
An ECS service is a promise that four copies of your container stay up, through crashes and deploys. Most outages with it are a broken promise you can read in two…
- Fargate: containers without managing serversIntermediate · 5 min
With Fargate there is no host to patch or size, so you pay and plan per task instead. A task size that does not exist, or a subnet that cannot reach the registry, stops…