botor icon indicating copy to clipboard operation
botor copied to clipboard

Write to S3 with KMS encryption

Open jornfranke opened this issue 4 years ago • 1 comments

Hi,

Thanks a lot for this great library. It works fine, but I am not sure how to realize the following case: Upload a file to S3 with KMS key encryption. E.g. in Python Boto3 I would do the following:

s3.Bucket('test-bucket').upload_file('test.txt', 'experiments/test.txt', ExtraArgs={"ServerSideEncryption": "aws:kms", "SSEKMSKeyId": "alias/test-key" })

Can this be done already? Or would it be possible to add?

Thank you a lot.

Best regards

jornfranke avatar Jun 30 '21 15:06 jornfranke

I did some kind of workaround via

     eval.parent(s3()$Object( bucket_name =bucket,key = key)$upload_file(t, ExtraArgs = list(ServerSideEncryption="aws:kms", SSEKMSKeyId= "alias/test-alias")))

However, it would be still nice to have a "cleaner" version directly in the library.

jornfranke avatar Jun 30 '21 15:06 jornfranke