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.
Daniel
已提問 8 個月前檢視次數 269 次
1 個回答
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
已回答 8 個月前
profile picture
專家
已審閱 8 個月前
profile pictureAWS
專家
已審閱 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南