-
Notifications
You must be signed in to change notification settings - Fork 4.4k
certificatemanager: Route 53 records not cleaned up after removing DNS Validated CertificateΒ #3333
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-certificatemanagerRelated to Amazon Certificate ManagerRelated to Amazon Certificate ManagerbugThis issue is a bug.This issue is a bug.effort/mediumMedium work item β several days of effortMedium work item β several days of effortp2
Description
-
I'm submitting a ...
- πͺ² bug report
- π feature request
- π construct library gap
- βοΈ security issue or vulnerability => Please see policy
- β support request => Please see note at the top of this template.
-
What is the current behavior?
Following this code:
const zone = new route53.HostedZone(this, 'zone', { zoneName: 'bar.com' })
new certificateManager.DnsValidatedCertificate(this, 'cert', {
hostedZone: zone,
domainName: `foo.bar.com`,
})
An ACM certificate is created and validated via DNS. However, when you destroy the stack, it fails with the following error (Service: AmazonRoute53; Status Code: 400; Error Code : HostedZoneNotEmpty ...
- What is the expected behavior (or behavior of feature suggested)?
The stack was destroyed cleanly.
- What is the motivation / use case for changing the behavior or adding this feature?
A stack created by CDK should naturally be destroyable. Checking the lambda resource that handles the validation, I can see that when the resource is destroyed, no attempt is made to clean up the route53 record. This explains why it fails.
-
Please tell us about your environment:
- CDK CLI Version: 1.0.0
- Module Version: 1.0.0
- OS: [all]
- Language: [TypeScript ]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-certificatemanagerRelated to Amazon Certificate ManagerRelated to Amazon Certificate ManagerbugThis issue is a bug.This issue is a bug.effort/mediumMedium work item β several days of effortMedium work item β several days of effortp2