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
// 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"
}
}
On running cdk ls:
acmCertificate certficate must be in the us-east-1 region, got eu-west-1
This is :bug: Bug Report
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.
Most helpful comment
Duplicate of #4724
I've reverted the check, it should be out for the next release. Sorry about that