Interview Prep/AWS/IAM and Access Errors

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 →

  1. Remove the offending statement
  2. Re-enable Block Public Access
  3. Archive the finding if intentional

Prevent → Alert on new findings through EventBridge.

aws All AWS questions Roadmap: AWS core services

More on IAM and Access Errors