Skip to content

Delete ACM Cert in Use By CloudFront Distribution after Deleting User Pool

0

I had to delete my user pool because I needed to change the required properties for new user sign up. I'm also trying to remove the ACM cert that I created for the custom domain, however it will not let me delete the cert because it's saying its in use by a CloudFront Distribution. However, if I go to CloudFront I don't have any Distributions setup. Therefore, I'm stuck and Amazon Q's suggested was that I need to ask support to manually remove the assocation.

asked 2 years ago543 views

1 Answer
0
Accepted Answer

This is a common issue that can occur when deleting a Cognito user pool that was associated with a custom domain and ACM certificate. Even though you've deleted the user pool, the CloudFront distribution that was automatically created by Cognito to handle the custom domain may still be lingering in the background, preventing you from deleting the ACM certificate.

In this situation, the CloudFront distribution is likely an AWS-managed distribution that was created behind the scenes for the Cognito User Pool. Since you've already deleted the user pool, you won't be able to modify its settings or see the distribution in your CloudFront console.

Unfortunately, in cases like this where the CloudFront distribution is not visible and cannot be modified directly by you, the resolution typically requires intervention from AWS. The AWS CloudFront or Cognito service team would need to remove the association between the certificate and the invisible CloudFront distribution.

The recommended course of action is to open a support case with AWS. You should explain that you've deleted a Cognito user pool, but the associated ACM certificate cannot be deleted due to a lingering association with a CloudFront distribution that you cannot see or modify. Request that they remove the association so you can delete the certificate.

While waiting for the support case to be resolved, keep in mind that ACM certificates are free, so there's no financial impact to having the certificate remain in your account temporarily. Once AWS support addresses the issue, you should be able to delete the certificate without further complications.
Sources
CloudFront Distribution cannot be removed | AWS re:Post
Services integrated with ACM - AWS Certificate Manager

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.