(@aws-cdk/aws-certificatemanager): certificate SAN's not filtered for validated #15574
Labels
@aws-cdk/aws-certificatemanager
Related to Amazon Certificate Manager
bug
This issue is a bug.
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/medium
Medium work item – several days of effort
p2
aws-cdk/packages/@aws-cdk/aws-certificatemanager/lib/certificate.ts
Line 281 in 62e2f19
When the domain name is known then this generates the correct certificate request with
*.acme.com
filtered out of the certificate props.When the domain name contains a part which is not fully resolved via
HostedZone.fromHostedZoneAttributes
then the SAN's will not be filtered correctly leading to CloudFormation to apply invalid RecordSet which causes deploy to fail.This can be fixed by manually filtering the validation props via
Reproduction Steps
Create a certificate for a domain in a zone which is imported into the stack with wildcard SAN validation.
What did you expect to happen?
CDK deploy works
What actually happened?
deploy fails
15/25 |17:19:39 | CREATE_FAILED | AWS::CertificateManager::Certificate | XXXX (YYYYY) [The request contains an invalid set of changes for a resource record set 'CNAME .'] (Service: AmazonRoute53; Status Code: 400; Error Code: InvalidChangeBatch; Request ID: XXXXX; Proxy: null)
Environment
Other
related to #9248
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: