- Newest
- Most votes
- Most comments
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
Relevant content
asked 2 years ago
asked a year ago
- AWS OFFICIALUpdated a year ago
