Interview Prep/AWS/S3, EBS and EFS

A partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.

IntermediateTroubleshootingS3, EBS and EFS
Answer

Likely causes → Object Ownership is ObjectWriter (the legacy setting), so the uploading account owns the objects and the bucket policy cannot grant access to them. This happens when the uploader did not set bucket-owner-full-control.

Diagnose →

aws s3api get-bucket-ownership-controls --bucket shared-ingest
aws s3api get-object-acl --bucket shared-ingest --key incoming/file.csv

Fix →

  1. Turn on Bucket owner enforced (ACLs disabled): aws s3api put-bucket-ownership-controls --bucket shared-ingest --ownership-controls 'Rules=[{ObjectOwnership=BucketOwnerEnforced}]'
  2. That takes ownership of all objects, including existing ones. Re-check the bucket policy grants

Prevent → Use BucketOwnerEnforced everywhere (the default for new buckets since 2023), and control access only through policies.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS