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