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개 답변
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠