首页 > 解决方案 > 无法删除 AWS 证书(证书正在使用中)

问题描述

我正在尝试删除两个证书,但收到此类错误消息: 在此处输入图像描述

但是,当我运行时:

aws elbv2 describe-load-balancers --region us-east-1 --load-balancer-arns

我没有返回负载均衡器?

另外,如果我尝试直接删除:

aws elbv2 delete-load-balancer --region us-east-1 --load-balancer-arn ...

我得到错误:

不是有效的负载均衡器 ARN

如何删除这些“关联”?

标签: amazon-web-servicesaws-certificate-manager

解决方案


当您部署区域 API 端点时,API Gateway 会代表您创建一个应用程序负载均衡器 (ALB)。负载均衡器归 API Gateway 所有,对您不可见。ALB 绑定到您在部署 API 时使用的 ACM 证书。

To remove the binding and allow ACM to delete your certificate, you must remove the API Gateway custom domain that is associated with the certificate.

来源:https ://docs.aws.amazon.com/acm/latest/userguide/troubleshoot-apigateway.html


推荐阅读