'Delete ACM certificate after CloudFront was deleted

I had a CloudFront distribution with a custom ACM certificate associated with it. The CloudFront was deleted, but I cannot delete the certificate, it says it’s still in use by that CloudFront, that no longer exist. Any idea what is happening and how do I delete the certificate?

Using either terraform or AWS console if this matters.



Solution 1:[1]

I have seen the same issue where the Cloudfront is deleted but certificate shows it is still attached. Usually I am able to delete the certificate after 15 minutes.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 aadiupa