Access Analyzer reports an external access finding for an S3 bucket you thought was private.
IntermediateTroubleshootingIAM and Access Errors
Answer
Likely causes → Bucket policy or ACL grants a principal outside the zone of trust, possibly via Principal: *.
Diagnose →
aws accessanalyzer list-findings --analyzer-arn <arn>
aws s3api get-bucket-policy-status --bucket b
aws s3api get-bucket-acl --bucket b
Fix →
- Remove the offending statement
- Re-enable Block Public Access
- Archive the finding if intentional
Prevent → Alert on new findings through EventBridge.
More on IAM and Access Errors
`An error occurred (AccessDenied) when calling the ListBuckets operation: Access Denied` for a user who has S3 read access. What is wrong?Beginner`ExpiredToken: The security token included in the request is expired` in a long CI job. How do you fix it?Beginner`User: arn:aws:sts::111111111111:assumed-role/dev/bob is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::222222222222:role/deploy`. Why?Intermediate`An error occurred (AccessDenied) ... because no identity-based policy allows the s3:GetObject action` yet a bucket policy allows the user. Cross-account?IntermediateIAM policy validation: `MalformedPolicyDocument: Policy document should not specify a principal`. What happened?Intermediate`The security token included in the request is invalid` when using `aws` CLI.Beginner