Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3. Maximum object size

Tags:

amazon-s3

Is there a possibility to set maximum file (object) size using a bucket's policy? I found here a question like this, but there is no size limitation in the examples.

like image 270
Alexey Avatar asked Jul 23 '12 08:07

Alexey


People also ask

What is the maximum size of the S3 bucket 2gb 200gb 200gb 5TB?

Object size limit on S3 is 5TB but single PUT limit is 5GB.

What is the maximum number of objects you can store in an S3 bucket?

S3 provides unlimited scalability, and there is no official limit on the amount of data and number of objects you can store in an S3 bucket. The size limit for objects stored in a bucket is 5 TB.


1 Answers

No, you can't do this with a bucket policy. Check the Element Descriptions page of the S3 documentation for an exhaustive list of the things you can do in a bucket policy.

However, you can specify a content-length-range restriction within a Browser Uploads policy document. This feature is commonly used for giving untrusted users write access to specific keys within an S3 bucket you control (e.g. user-facing media uploads), and it provides the appropriate tools for limiting the location, size, and data types that can be uploaded without needing to expose your S3 credentials.

like image 100
willglynn Avatar answered Sep 22 '22 09:09

willglynn