I'm trying to delete my Network Load Balancer. However, I receive an error that the "Network Load Balancer is currently associated with another service."
Short description
This error indicates that a Network Load Balancer that you want to delete is already associated with a virtual private cloud (VPC) endpoint service. Before you can delete a Network Load Balancer, you must first disassociate it from any associated VPC endpoint services.
Resolution
Disassociate the Network Load Balancer from any associated VPC endpoint services
- Open the Amazon Virtual Private Cloud (Amazon VPC) console.
- In the navigation pane, choose Endpoint Services.
- Review the Network Load Balancer tab for each of your endpoint services to determine whether your Network Load Balancer is associated with an endpoint service.
- Choose the Endpoint Connections tab to determine which endpoint connections 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, use one of the options in the following section to disassociate the Network Load Balancer.
Delete the Network Load Balancer and keep the endpoint service active
To delete a Network Load Balancer but keep the endpoint service active, associate the endpoint service with a different Network Load Balancer:
- Open the Amazon VPC console.
- In the navigation pane, choose Endpoint services.
- Select the endpoint service that's associated with the Network Load Balancer.
- Choose Actions, Associate or disassociate load balancers.
- Clear the selection for the Network Load Balancer that you want to delete, and then select a Network Load Balancer to replace it.
Delete a Network Load Balancer and associated endpoint service
Delete both the Network Load Balancer and the associated endpoint service:
- Open the Amazon VPC console.
- Choose the endpoint service that you want to delete.
- Choose Action, and then choose Delete endpoint services.
- Delete the Network Load Balancer.