`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 →
- Use
aws s3 cp backup.tar s3://bucket/(multipart, parallel parts) - Tune it for speed:
aws configure set default.s3.multipart_chunksize 64MBandmax_concurrent_requests 20
Prevent → Use the high-level transfer managers (CLI s3 cp, SDK TransferManager) for anything larger than about 100 MB.
More on S3, EBS and EFS
`BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system.`Beginner`PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.`BeginnerA partner account uploads objects into your bucket, but your own admins get `403 Forbidden` reading them.Intermediate`aws s3 cp` gets `An error occurred (AccessDenied) when calling the GetObject operation` but the IAM policy allows `s3:GetObject` and the bucket policy is fine.IntermediateAn S3 static website endpoint returns `403 Forbidden` with `Code: AccessDenied`.IntermediateHigh-throughput writes get `503 SlowDown: Please reduce your request rate.`Intermediate