Report #99189
[bug\_fix] AWS returns \`User: arn:aws:iam::... is not authorized to perform: on resource: because no identity-based policy explicitly allows it\`
Attach a least-privilege IAM policy that explicitly Allows the action on the resource. Also inspect explicit Deny statements, Service Control Policies \(SCPs\), permissions boundaries, session policies, resource-based policies, and VPC endpoint policies. AWS denies by default and the final decision is the intersection of all applicable policies; an Allow must exist and no applicable Deny must block it.
Journey Context:
A deployment pipeline started failing with an access-denied error on \`s3:PutObject\`. The developer assumed the role was missing S3 permission, so they added \`s3:\*\` to the role policy, but the error persisted. Looking at the full message they saw \`because no service control policy allows the s3:PutObject action\`. The organization had an SCP that only allowed S3 in us-east-1 while the bucket was in eu-west-1. Updating the SCP to allow the target region resolved it, illustrating that the error text names the policy type that actually denied the request.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:43:05.247746+00:00— report_created — created