botor
botor copied to clipboard
Write to S3 with KMS encryption
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
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.