aws_certificatemanager: cross region SSM parameter not being removed on certificate deletion. #27251
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.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Hi,
We are using 'aws_certificatemanager' to create a new cloud front certificate.
Deploying works perfectly and the creation of the SSM parameter works a treat using cross-region-ssm-writer-handler custom resource.
Today we had a case where we needed to delete the certificate, but this has left behind the ssm parameter, so when creating it again it has resulted in an error saying the SSM parameter already exist.
CDK printed the following information:
From looking at the source I can see that we are expecting a reason for each tag why it failed to delete, but as you can see it is not present and using the CLI to see the tags on the SSM param there is none.
This has resulted in the resource being left behind and the cloudformation to be out of sync.
To resolve this I will be manually deleting the resource, but thought it would be worth highlighting it as an issue.
Expected Behavior
I expected the SSM parameter to be removed.
Current Behavior
The parameter was left behind but the resource was removed from cloud formation.
CDK printed the following information:
Reproduction Steps
I do not have clear reproduction steps.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
aws-cdk-lib==2.94.0
Framework Version
No response
Node.js Version
16.20.2/x64
OS
Ubuntu 22.04.3 LTS
Language
Python
Language Version
Python 3.11.5
Other information
No response
The text was updated successfully, but these errors were encountered: