Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write to S3 with KMS encryption #14

Open
jornfranke opened this issue Jun 30, 2021 · 1 comment
Open

Write to S3 with KMS encryption #14

jornfranke opened this issue Jun 30, 2021 · 1 comment

Comments

@jornfranke
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant