尝试使用Lambda/Boto3 3修改端点。
根据文件:
response = client.modify_endpoint(
EndpointArn='string',
S3Settings={
'EncryptionMode': 'sse-s3'|'sse-kms',
'ServerSideEncryptionKmsKeyId': 'string',
}但是,当我设置‘sse’并传递我的KeyID时,我将返回这个错误:
ERROR ClientError:调用ModifyEndpoint操作时发生错误(InvalidParameterCombinationException):只支持SSE_S3加密模式。回溯(最近一次调用):文件"/var/task/main.py",第16行,main response = client.modify_endpoint( File“/var/运行时/botocore/botocore/client.py”),第316行,在_api_call返回self._make_api_call(operation_name,kwargs) self._make_api_call“/var/运行时/botocore/client.py”,第635行,在_make_api_call raise error_class(parsed_response,operation_name)中
这是我的全部兰博达:
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'
}
)发布于 2020-08-14 09:11:16
看起来您已经创建了或者您现有的端点EncryptionMode设置为SSE_S3。根据这文档,您不可能从SSE_S3更改为SSE_KMS。
对于操作,可以将EncryptionMode参数的现有值从SSE_KMS更改为SSE_S3。但不能将现有值从SSE_S3更改为SSE_KMS.。
https://stackoverflow.com/questions/63407930
复制相似问题