In an illustrative incident, account 111122223333 has a role named LedgerJob allowed to assume arn:aws:iam::444455556666:role/LedgerReader. A deployment changed its worker to use LedgerJobV2. The new role's policy allows the same STS call, while the target trust policy names only LedgerJob. An administrator can read the trust policy directly with GetRole.
aws iam get-role --role-name LedgerReader \
--query 'Role.AssumeRolePolicyDocument'
Run that inspection in the target account. Compare the trusted principal and any conditions with the evidence from the failed STS call. If LedgerJobV2 is the approved caller, ask the target account owner to review trust for that role and retain the applicable conditions. If the policy is already correct for the recorded principal, inspect the caller's limiting policies before expanding trust. IAM cross-account evaluation · STS AssumeRole · GetRole