How do I delete a Network Load Balancer that's "currently associated with another service"?

2 minute read
1

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

  1. Open the Amazon Virtual Private Cloud (Amazon VPC) console.
  2. In the navigation pane, choose Endpoint Services.
  3. 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.
  4. Choose the Endpoint Connections tab to determine which endpoint connections are attached to your endpoint service.
  5. For the connections that aren't in the Rejected state, choose Actions, and then choose Reject endpoint connection request.
  6. 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:

  1. Open the Amazon VPC console.
  2. In the navigation pane, choose Endpoint services.
  3. Select the endpoint service that's associated with the Network Load Balancer.
  4. Choose Actions, Associate or disassociate load balancers.
  5. 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:

  1. Open the Amazon VPC console.
  2. Choose the endpoint service that you want to delete.
  3. Choose Action, and then choose Delete endpoint services.
  4. Delete the Network Load Balancer.
AWS OFFICIAL
AWS OFFICIALUpdated a year ago
2 Comments

The answer for deleting the NLB and VPC endpoint appears to be incomplete – I had to first reject the connection request, before I could delete the VPCE (and therfore the Load Balancer). See https://stackoverflow.com/a/69127426/48340 for complete instructions.

replied 2 months ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied 2 months ago