Learning center

Find when an AWS permissions boundary limits a role

Check the attached boundary when a role's identity policy allows the request and AWS names a permissions-boundary denial. The boundary limits what the identity policy can grant.

In a fictional account, InventoryJob gains an identity-policy allow for ec2:DescribeVolumes. The attached boundary limits EC2 reads to ec2:DescribeInstances. This identity-policy change cannot authorize the new call by itself. An IAM reader can retrieve the attached boundary ARN from the role record.

aws iam get-role --role-name InventoryJob \
  --query 'Role.PermissionsBoundary.PermissionsBoundaryArn'

Read the managed policy's default version and locate the relevant action, resources and conditions. If the inventory job genuinely needs volumes, take the exact request to the boundary owner. Another role policy would still sit inside that boundary. Resource-based grants can be evaluated differently depending on which principal they name, so apply this diagnosis to the observed identity-policy case. IAM permissions boundaries and resource-based policy interaction ยท GetRole

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