Interview Prep/AWS/S3, EBS and EFS

`s3api put-object` fails: `EntityTooLarge: Your proposed upload exceeds the maximum allowed size`.

BeginnerTroubleshootingS3, EBS and EFS
Answer

Likely causes → One PUT can be at most 5 GB. aws s3api put-object does a single PUT, while aws s3 cp switches to multipart automatically. Objects larger than that can only be uploaded with multipart upload.

Diagnose →

ls -lh backup.tar
aws configure get default.s3.multipart_threshold

Fix →

  1. Use aws s3 cp backup.tar s3://bucket/ (multipart, parallel parts)
  2. Tune it for speed: aws configure set default.s3.multipart_chunksize 64MB and max_concurrent_requests 20

Prevent → Use the high-level transfer managers (CLI s3 cp, SDK TransferManager) for anything larger than about 100 MB.

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS