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

Supporting SSEKMSEncryptionContext when s3 upload extra_arg allow list, Invalid extra_args key 'SSEKMSEncryptionContext', must be one of: #172

Open
annguojia opened this issue Dec 22, 2020 · 0 comments

Comments

@annguojia
Copy link
Contributor

Hello,

Currently we are using s3transfer to do s3 upload via s3-SSE. However, one issue we found is that s3transfer manager.py not supporting

Traceback (most recent call last):
  File "/opt/amazon/lib/python3.6/site-packages/deepinsight_document_classification/asynchronous/main.py", line 198, in upload_model
    extra_args=extra_args)
  File "/opt/amazon/lib/python3.6/site-packages/deepinsight_document_classification/s3.py", line 59, in upload_file
    self._s3transfer.upload_file(filename, bucket, key, extra_args=extra_args)
  File "/opt/amazon/lib/python3.6/site-packages/boto3/s3/transfer.py", line 277, in upload_file
    filename, bucket, key, extra_args, subscribers)
  File "/opt/amazon/lib/python3.6/site-packages/s3transfer/manager.py", line 304, in upload
    self._validate_all_known_args(extra_args, self.ALLOWED_UPLOAD_ARGS)
  File "/opt/amazon/lib/python3.6/site-packages/s3transfer/manager.py", line 446, in _validate_all_known_args
    kwarg, ', '.join(allowed)))
 "ValueError: Invalid extra_args key 'SSEKMSEncryptionContext', must be one of: ACL, CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentType, Expires, GrantFullControl, GrantRead, GrantReadACP, GrantWriteACP, Metadata, RequestPayer, ServerSideEncryption, StorageClass, SSECustomerAlgorithm, SSECustomerKey, SSECustomerKeyMD5, SSEKMSKeyId, Tagging, WebsiteRedirectLocation"  

Can you please help

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