ACM indicates my certificate is attached to a Cloudfront distribution that does not exist

0

I have a ACM certificate that cannot be deleted via the UI or via the CLI. The certificate says it is attached to a resource that does not exist: arn:aws:acm:us-east-1:518048683554:certificate/102c17e1-1df1-4bc1-97c7-91d00c45cf0e

Any ideas?

aws acm delete-certificate --certificate-arn arn:aws:acm:us-east-1:518048683554:certificate/102c17e1-1df1-4bc1-97c7-91d00c45cf0e --region us-east-1

An error occurred (ResourceInUseException) when calling the DeleteCertificate operation: Certificate arn:aws:acm:us-east-1:518048683554:certificate/102c17e1-1df1-4bc1-97c7-91d00c45cf0e in account 518048683554 is in use.

And also

aws cloudfront delete-distribution --id arn:aws:cloudfront::667135842464:distribution/E196BV96RU2HXB


An error occurred (NoSuchDistribution) when calling the DeleteDistribution operation: The specified distribution does not exist.
1 Risposta
0

From the commands seems your ACM is in AWS account number : 518048683554

And you are trying to delete the CloudFront distribution in different AWS account : 667135842464

replace the correct Account ID and CloudFront distribution and you should be good and make sure you are passing the correct region.

aws cloudfront delete-distribution --id arn:aws:cloudfront::<AWS_ACCOUNT_ID>:distribution/<CloudFront_Distribution_Id>

profile picture
con risposta 8 mesi fa
profile picture
ESPERTO
verificato 8 mesi fa
profile pictureAWS
ESPERTO
verificato 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande