Amazon s3-log log service transfer to create log files with reduced redundancy storage class

I have a bucket that contains only log files, and I want all the files in this bucket to use a redundant storage class.

My first attempt was to define a bucket policy. But as far as I can see, these policies can only be used to restrict access to the contents of the bucket. It seems that some hockey features do not alter access to the s3-log service record.

Is there any other way to tell s3-log-service to use a redundant storage class?

+4
source share
1 answer

Reduced redundancy is set for each object when it is created, and therefore you cannot apply the bucket policy. To use this function, you must add a header ( x-amz-storage-class: REDUCED_REDUNDANCY ) when writing an object to S3.

I'm not very good at logging, but from what I can say, it looks like you have to do it yourself.

Since your files are already in the bucket on S3, you will need to use COPY to set a new header. Technical instructions (high-level) for this are described in the documentation , if you let me know in which language you usually write code, I can try to help you with this and expand my answer.

+2
source

Source: https://habr.com/ru/post/1389094/


All Articles