I'm trying to delete my Network Load Balancer. However, I receive the error message, "Network Load Balancer is currently associated with another service."
Resolution
Disassociate the Network Load Balancer from Amazon VPC endpoint services
Before you can delete a Network Load Balancer, you must first disassociate it from any associated Amazon Virtual Private Cloud (Amazon VPC) endpoint services. To disassociate, complete the following steps:
- Open the Amazon VPC console.
- In the navigation pane, choose Endpoint services.
- Choose the Network Load Balancer tab to view the endpoint services that your Network Load Balancer is associated with.
- Choose the Endpoint connections tab to determine endpoint connections that are attached to your endpoint service.
- For the connections that aren't in the Rejected state, choose Actions, and then choose Reject endpoint connection request.
After you delete the associated endpoints, you can either delete the Network Load Balancer and keep the endpoint services active. Or, you can delete the Network Load Balancer and the associated endpoint services.
Delete the Network Load Balancer and keep the endpoint services active
If you chose to delete the Network Load Balancer and keep the endpoint services active, then complete the following steps:
- Open the Amazon VPC console.
- In the navigation pane, choose Endpoint services.
- Select the endpoint services that are associated with the Network Load Balancer.
- Choose Actions, and then select Associate or disassociate load balancers.
- Clear the selection for the Network Load Balancer that you want to delete, and then select another Network Load Balancer to replace it.
- Delete the Network Load Balancer.
Delete a Network Load Balancer and associated endpoint services
If you chose to delete the Network Load Balancer and the associated endpoint services, then complete the following steps:
- Open the Amazon VPC console.
- Select the endpoint services that you want to delete. For more information, see Delete an endpoint service.
- On the Endpoint connections tab, choose Actions.
- Reject the endpoint connection requests for any connections that aren't in the Rejected state.
- Delete any VPC endpoints within the same AWS account that are associated with the endpoint services.
- Select Actions, and then delete each endpoint service.
- Delete the Network Load Balancer.