- Newest
- Most votes
- Most comments
Hello.
I had a similar problem in the past and was able to resolve it by contacting AWS support.
https://repost.aws/ja/questions/QUD6O2O6z2QjelpBx6bcnBaA/cannot-delete-acm-certificate-due-to-uncontrollable-resource-associations
You cannot contact AWS Support via AWS re:Post, so please sign in to your AWS account and contact us via the following URL.
"Account and billing" inquiries are free of charge.
https://console.aws.amazon.com/support
I apologize, but I'm not AWS support and cannot directly delete your expired certificate. However, I can provide some information about the issue you're experiencing and suggest some steps you might take.
The problem you're describing is a known issue with ACM (AWS Certificate Manager) certificates. Even after you've removed all visible associations, sometimes there can be lingering connections that prevent deletion. This often happens with AWS-managed resources that were created behind the scenes, such as CloudFront distributions associated with Cognito User Pools or other services.
Here are some steps you can try:
-
Double-check all possible places where the certificate might be used, including API Gateway custom domain names, Load Balancer listeners, CloudFront distributions, and Cognito User Pools.
-
Try deleting the certificate using the AWS CLI. Sometimes this can work when the console fails.
-
If the above steps don't work, you will indeed need to contact AWS Support. They have the ability to see and remove associations that aren't visible to customers.
To contact AWS Support:
- Open a case under "Account and billing"
- Explain that you have an expired certificate that you can't delete due to invisible resource associations
- Provide the ARN of the certificate you're trying to delete
- Request that they remove the associations so you can delete the certificate
While waiting for support to resolve the issue, keep in mind that ACM certificates are free, so there's no financial impact to having the expired certificate remain in your account temporarily.
In the future, to avoid this situation, make sure to remove all associations with a certificate before it expires or before you try to delete it.
Sources
Cannot delete certificate | AWS re:Post
AWS ACM Certificate delete issue | AWS re:Post
DeleteCertificate - AWS Certificate Manager
Delete certificates managed by AWS Certificate Manager - AWS Certificate Manager
Delete ACM Cert in Use By CloudFront Distribution after Deleting User Pool | AWS re:Post
