Aws-cdk: DnsValidatedCertificate is ignoring the region property given in props

Created on 2 Nov 2019  路  3Comments  路  Source: aws/aws-cdk

My stack is created in eu-west-1 region, however i am create a DnsValidatedCertificate specifically in us-east-1 region. In CDK 1.15.0 version, it is giving the below error when i run cdk ls

_acmCertificate certficate must be in the us-east-1 region, got eu-west-1_

The same is working in version <=1.14.0

Reproduction Steps

// Typescript code snippet for creating certificate in stack
const certificate = new acm.DnsValidatedCertificate(this, 'DomainCertificate', {
      domainName: this.domainName,
      hostedZone: this.hostedZone,
      region: 'us-east-1'
});

// Generated Resource in template json
    "DomainCertificateCertificateRequestorResourceAEE5562E": {
      "Type": "AWS::CloudFormation::CustomResource",
      "Properties": {
        "ServiceToken": {
          "Fn::GetAtt": [
            "DomainCertificateCertificateRequestorFunction47AD3C81",
            "Arn"
          ]
        },
        "DomainName": "*****.*****.com",
        "HostedZoneId": "DUMMY",
        "Region": "us-east-1"
      },
      "UpdateReplacePolicy": "Delete",
      "DeletionPolicy": "Delete",
      "Metadata": {
        "aws:cdk:path": "WebStack/DomainCertificate/CertificateRequestorResource/Default"
      }
    }

Error Log

On running cdk ls:
acmCertificate certficate must be in the us-east-1 region, got eu-west-1

Environment

  • *CLI Version :1.15.0*
  • *Framework Version:1.15.0*
  • *OS :Mac*
  • *Language :Typescript*

Other


This is :bug: Bug Report

@aws-cdaws-certificatemanager bug duplicate in-progress

Most helpful comment

Duplicate of #4724

I've reverted the check, it should be out for the next release. Sorry about that

All 3 comments

Duplicate of #4724

I've reverted the check, it should be out for the next release. Sorry about that

@nmussy, no worries, will wait.

Many thanks for the above.

Closing since it's a duplicate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eladb picture eladb  路  3Comments

abelmokadem picture abelmokadem  路  3Comments

slipdexic picture slipdexic  路  3Comments

schof picture schof  路  3Comments

nzspambot picture nzspambot  路  3Comments