Learning center

Find the deployer and role behind an AWS PassRole denial

A deployer may be allowed to create a service resource while lacking permission to pass the execution role to that service. Inspect the parent API call that took the role ARN.

For example, a fictional Lambda release role calls CreateFunction with arn:aws:iam::111122223333:role/report-function. Its grant covers lambda:CreateFunction and permits passing only role/old-report-function. The release log names iam:PassRole. In CloudTrail, read the CreateFunction event if available and compare the caller and requested role against the deployed policy. PassRole is a permission check, so look for the parent call instead of a standalone PassRole event. AWS IAM PassRole and CloudTrail

If the new role is approved, the deployer's policy owner can review iam:PassRole scoped to that role and, where appropriate, iam:PassedToService for Lambda. The role owner separately checks its trust relationship with the service. Record those as two decisions. The first controls who may assign the role, and the second controls who may assume it.

Trace another denied request.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading