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 个月前270 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容