iam:PassRole
The permission to hand an IAM role to an AWS service, such as giving a role to an EC2 instance or a Lambda function.
Unrestricted PassRole lets an identity escalate to any role in the account.
In more detail
PassRole is quietly powerful: with a resource of * an identity can hand an administrator role to a service it controls and so inherit everything that role may do. Limit it to the exact role ARNs a deployment needs.
Related terms
- IAM role — A cloud identity with permissions but no password, which trusted users or workloads temporarily assume.
- wildcard — A special character, such as *, that stands for any value or any run of characters when matching names or patterns.
- least privilege — Giving every program and person only the access they need, and nothing more.
Taught in
- Policies and Least Privilege — Cloud Infrastructure & Hyperscaler Architecture