最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Unable to use useNewMappingType while creating OpenSearch Endpoint via CDK - Stack Overflow

programmeradmin1浏览0评论

I am creating DMS endpoint for opensearch and need to use useNewMappingType as true, this is available in AWS documentation here. But I am unable to do that, as this is not allowed in AWS CDK library.

Upon further inspection, I have also noted that cloudformation is not supporting this parameter either, as observed here.

Are there any workarounds? Since I am using CDK with typescript with latest version "2.178.1" and don't want to make any manual updates after the infrastructure is setup.

    // Create DMS Endpoint for OpenSearch target
const targetEndpoint = new dms.CfnEndpoint(this, 'TargetEndpoint', {
  endpointType: 'target',
  engineName: 'opensearch',
  endpointIdentifier: `${id}-target-opensearch`,
  elasticsearchSettings: {
    endpointUri: props.opensearchDomain.domain.domainEndpoint,
    serviceAccessRoleArn: dmsOpenSearchRole.roleArn,
    errorRetryDuration: 300,
    fullLoadErrorPercentage: 10,
    useNewMappingType: true,
  },
});

发布评论

评论列表(0)

  1. 暂无评论