如何解决AWS DMS S3端点SSE-KMSInvalidParameterCombinationException
尝试使用Lambda / Boto3修改端点。
根据文档:
response = client.modify_endpoint(
EndpointArn='string',S3Settings={
'EncryptionMode': 'sse-s3'|'sse-kms','ServerSideEncryptionKmsKeyId': 'string',}
但是,当我设置'sse-kms'并传递我的KeyID时,我得到了这个错误:
[ERROR] ClientError:发生错误 (InvalidParameterCombinationException)调用ModifyEndpoint时 操作:仅支持SSE_S3加密模式。追溯(最 最近一次通话):文件“ /var/task/main.py”,主行中的第16行 响应= client.modify_endpoint(文件_api_call中的文件“ /var/runtime/botocore/client.py”,第316行 返回self._make_api_call(operation_name,kwargs)文件“ /var/runtime/botocore/client.py”,行635,在_make_api_call中 引发error_class(parsed_response,operation_name)
这是我的完整Lambda:
def main(event,context):
client = boto3.client('dms')
response = client.modify_endpoint(
EndpointArn = 'arn:aws:dms:us-east-1:123456789012:endpoint:xxxxxxxxxxxxxxxxxxxxxxxxxxxx',ExtraConnectionAttributes = 'cdcPath=undefined',S3Settings = {
'CompressionType': 'none','DataFormat': 'parquet','EncryptionMode': 'sse-kms','ServerSideEncryptionKmsKeyId': 'arn:aws:kms:us-east-1:772631637424:key/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
}
)
解决方法
您似乎已创建或现有端点EncryptionMode设置为SSE_S3。根据{{3}}文档,您无法从SSE_S3更改为SSE_KMS。
对于ModifyEndpoint操作,可以将EncryptionMode参数的现有值从SSE_KMS更改为SSE_S3。但是您无法将现有值从SSE_S3更改为SSE_KMS。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。