Cannot delete ACM certificate due to uncontrollable resource associations

0

I want to delete a testing purposed ACM certificate, but there are associated resources shown in figure below preventing me from deleting the certificate.

Enter image description here

These associations appear when I create a custom domain and configure the certificate for an API Gateway REST API, but they never disappear even when I remove the custom domain and the REST API. These resources (elb) do not belong to my account so I have no way to disassociate them.

Are there any other ways to delete the certificate? Thanks.

1 Answer
0
Accepted Answer

Hello.

That ALB appears to be the ALB created by API Gateway when deploying the region API endpoint.
https://repost.aws/knowledge-center/acm-certificate-resources

Try executing the following AWS CLI command to remove it.

aws acm delete-certificate --certificate-arn arn:aws:acm:ap-northeast-1:xxxxxxxxxxxx:certificate/12345678-1234-1234-1234-12345678abcd
profile picture
EXPERT
answered 7 months ago
  • Hi.

    Thanks for your assistance. I tried the command but received the following error.

    $ aws acm delete-certificate --certificate-arn arn:aws:acm:ap-northeast-1:512667299293:certificate/75ec907c-a6ee-4238-a330-6f761604b1d9 
    An error occurred (ResourceInUseException) when calling the DeleteCertificate operation: Certificate arn:aws:acm:ap-northeast-1:512667299293:certificate/75ec907c-a6ee-4238-a330-6f761604b1d9 in account 512667299293 is in use.
    
  • Is it possible to delete it even after a day or so? If it can't be deleted with a command, I don't think we users can delete it. So, I think you need to open a case with AWS Support under "Account and billing" and ask them to delete it. At that time, please provide all necessary information such as the ID of the resource linked to the ACM certificate to AWS Support. https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

  • I asked for AWS Support and finally got my certificate deleted! Thanks for the help.

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.

Guidelines for Answering Questions