AWS: Add Only Mode for S3 Bucket

Context

I want the machine to upload dump.rdb to s3 / blahblahblah / YEAR-MONTH-DAY-HOUR.rdb per hour.

So I need this machine to be able to upload new files to S3.

However, I do not want this computer to be able to (1) delete existing files or (2) overwrite existing files.

In a certain sense, it can only “add” - it can only add new objects.

Question:

Is there a way to configure the S3 setup as follows?

Thank!

+5
source share
3 answers

, .
: ACL. , , . , ACL Bucket "" , "".

1-Bucket :
(. ), , , IP- .
, : s3:PutObject s3:DeleteObject.
S3 .

ACL 2- :
ACL Bucket, , , .

+2

, @Viccari...

, №1 , № 2. , , , . . : Amazon S3 ACL .

, . ( "" : , UUID, .) , . .

+4

It's impossible! S3 is a repository of keys / values ​​and, therefore, inherently does not support adding only. The PUT / cp command on S3 can always overwrite a file. By enabling version control in your bucket, you are still safe because the account that downloads files is at risk.

0
source

All Articles