Report #81935
[gotcha] IAM Policy Simulator shows 'allowed' for cross-account access that will be denied by SCPs or Resource Policies
Always test cross-account access with a real \`sts:AssumeRole\` call or \`aws iam simulate-principal-policy\` with \`--policy-source-arn\` and explicit context. Never trust the console Policy Simulator for cross-account scenarios.
Journey Context:
The IAM Policy Simulator only evaluates identity-based policies attached to the principal. It ignores Service Control Policies \(SCPs\), VPC endpoint policies, session policies, and crucially resource-based policies \(e.g., S3 bucket policy, KMS key policy\). This leads to false positives where the simulator says 'allowed' but the actual API call returns AccessDenied. The only reliable test is a real API call or the CLI \`simulate-principal-policy\` which can include resource policies if you craft the input carefully, but generally, real-world testing is safer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:07:17.761593+00:00— report_created — created