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 Antwort
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
beantwortet vor 8 Monaten
profile picture
EXPERTE
überprüft vor 8 Monaten
profile pictureAWS
EXPERTE
überprüft vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen