Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

Least privilege

This revision card explains Least privilege. It starts from the need that administratorAccess on every role turns one leak into a full account breach. It describes least privilege means Allow only the actions and resource ARNs needed — prefer customer-managed policies over broad AWS managed when you can. The how-to section notes start with s3 — GetObject on one bucket ARN, test, then add only what fails. An example on the card is lambda that only reads one bucket cannot DeleteBucket even if compromised code tries.

Least privilege AdministratorAccess on every role turns one leak into a full account breach. Least privilege means Allow only the actions and resource ARNs needed — prefer customer-managed policies over broad AWS managed when you can. Start with s3:GetObject on one bucket ARN, test, then add only what fails. Lambda that only reads one bucket cannot DeleteBucket even if compromised code tries.
Least privilege · Download PNG
Read card text

What this card says

Why do we need it?

AdministratorAccess on every role turns one leak into a full account breach.

What is it?

Least privilege means Allow only the actions and resource ARNs needed — prefer customer-managed policies over broad AWS managed when you can.

How to do it

Start with s3:GetObject on one bucket ARN, test, then add only what fails.

Resource ARN

Example

Lambda that only reads one bucket cannot DeleteBucket even if compromised code tries.

See all AWS revision cards