문제

I've been looking all over and I can't find a yes or no answer. Can I restrict a bucket in S3 to specific size?

If so, could you please point me into the right direction in doing so? Thanks.

도움이 되었습니까?

해결책

Well you can do this from within the application you are building, assuming you know the size of the bucket in question, you can use the AWS API for getting the bucket size. However, there seems to be no way to accomplish this from within the AWS dashboard, nor can it be done with an S3 Bucket Policy.

Bummer, because I think this would be a great feature as well.

My advice is to be careful of which applications are uploading content to your S3 bucket, or to interface your application with the AWS API, check the bucket size before inserting content. This is not ideal however.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top