You need a way to protect an S3 bucket that allows only specific AWS accounts to read objects while still using bucket policies. Which approach is most appropriate?

Answer

Use IAM policies with Principal set to the allowed AWS account root or role ARN in the bucket policy

Explanation

Bucket policies are resource-based and support Principal conditions to restrict access by AWS account or role. This is the standard way to grant cross-account access while keeping the rule attached to the bucket.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list