起きたこと
VPC Endpoint Service(エンドポイントサービス)をコンソールより削除しようとするも
エンドポイントサービスの削除に失敗しました。
Details
vpce-svc-xx - Service has existing active VPC Endpoint connections!
というエラーが出て削除に失敗する。
対応方法
エンドポイントに紐づくロードバランサに対して
エンドポイント接続リクエストの却下
を行った上で「拒否を確認するには、フィールドに 却下と入力」という操作を行なって却下を行った後に削除を行う。
もともとLBの削除に失敗した理由を探っているとエンドポイントサービスが統合されているからでした。
Failed to delete load balancer: Load balancer 'arn:aws:elasticloadbalancing:ap-northeast-1:xx:loadbalancer/net/xx' cannot be deleted because it is currently associated with another service
エンドポイントサービスを削除すると
VPC Endpoint Services (AWS PrivateLink)Learn more
Establishes a private connection to your load balancer as an endpoint service.
No Integration detected
LBも削除できました。