Amazon Web Services - Deleting Network Load Balancer
Last Updated :
27 Mar, 2023
The AWS Network Load Balancer is used for routing the connections to other active microservices, containers, or instances of Amazon EC2 from the Amazon Virtual Private Cloud(VPC). These mappings (connections) are based on the IP protocol data. It operates on the connection level (Layer 4), for both TCP and UDP connections.
In this article, we will look into the possible reasons where deletion of the network load balancer in a virtual private cloud fails with the error indicating that the network load balancer is currently associated with another service. And we will also look into how we can fix it.
This message is generally encountered when you try to delete a network load balancer that is already associated with the VPC endpoint service. Note that this process is strictly related to changing the configuration of the resources. Implementing these changes will disrupt ongoing traffic (if any). Be sure you understand the effect that this disruption will have on your applications.
First we will attempt to delete the network load balancer that is associated with the VPC endpoint service. So log in to the AWS management console and navigate to the Amazon Elastic Compute Cloud console.
In the navigation panel choose load balancers.
Here we want to delete the network load balancer test1. So we'll select this load balancer.
Now choose actions and select delete followed by yes delete to delete the load balancer.
As you can see we can't delete the network load balancer because it's associated with another service.
To confirm whether network load balancer is associated with an endpoint service and then to disassociate it follow the below steps:
Step 1: Navigate to the VPC console.
Step 2: On the navigation page choose Endpoint services.
Step 3: Then check the Load Balancers tab.
For each endpoint service as you can see our load balancer is associated with this service.
If you see that your load balancer is associated with an endpoint service then perform the following actions:
Step 4: Select the Endpoint Connections tab.
The endpoint connections tab lists the endpoint connections that are attached to your endpoint service.
Step 5: Select all the connections that are not in the rejected state.
Step 6: Choose actions and select Reject endpoint connection request, and then choose yes reject.
Step 7: After you do this for all the connections select the Load Balancer tab again.
Step 8: Choose Associate/Disassociate Load Balancers.
Step 9: Now deselect your network load balancer and choose to save after completing these actions.
Step 10: Now navigate back to the load balancer console to delete the network load balancer. We'll select the network load balancer and then choose actions. Then select delete and then choose yes delete.
Now you can see that the Network Load Balancer is deleted without any issues.
Similar Reads
Amazon Web Services - Creating an Amazon Machine Image(AMI)
In this tutorial, we'll go through in great detail how to create an Amazon Machine Image on AWS. An operating system, programmes, and configuration settings are all part of an Amazon Machine Image (AMI), which is a template for software configuration. You must choose an AMI to act as the instance's
6 min read
Amazon Web Services - Introduction to Amazon EKS
Amazon Elastic Kubernetes Service(EKS) is a fully managed service that you can use to run Kubernetes on Amazon Web Service. Kubernetes is open-source software that enables you to install and manage applications at a high scale. Table of ContentWhat is Amazon EKSBenefits of Amazon EKSHow Amazon EKS W
10 min read
Amazon Web Services - Cost and Usage Report
In this article, we are going to set up AWS Cost and Usage reports. AWS Cost and Usage Reports track your AWS usage and provide estimated charges associated with your account. The AWS Cost and usage report contain the most encyclopedic set of cost and usage data available. You can use cost and usage
4 min read
Introduction to Amazon Web Services
Amazon Web Services (AWS) is one of the world's leading cloud platforms in providing the web services of various domains. AWS follows the trends of digital IT and comes up needy services with optimized performances covering a wide range of services from Compute to Storage. It covers a wider range of
12 min read
Amazon Web Services - Identities
When you will create your AWS account by submitting your credentials(e.g. email id, credit card/debit card details) it is called a root user account. The root user has access to all AWS services and resources in the account. Hence, Identity Access Management(IAM) system helps root users to create di
6 min read
Amazon Web Services - Introduction to CloudFront CDN
Amazon CloudFront is a global web service that allows you to securely deliver content to your users with low latency and high availability. It does so by further delivering content safely. This service helps to built high performance and security in your application. CloudFront works for both static
3 min read
Amazon Web Services - Introduction to Amazon Lightsail
Amazon LightSail is an AWS service that provides the a gateway for simplified cloud hosting helping the AWS users. It act as a user-friendly cloud platform that is designed for easy hosting and management of virtual private servers (VPS). With the LightSail service users can quickly develop and mana
8 min read
Amazon Web Services - Target Network with a Client VPN Endpoint
In this article we are going to look into how you can associate a target network with an AWS Client VPN Endpoint. To do so follow the below steps: Step 1: After logging in to the AWS management console navigate to the Amazon Virtual Private Cloud(VPC) console. Step 2: In the navigation pane choose C
2 min read
Amazon Web Services - Configuring Amazon S3 Event Notifications
The Amazon S3 notification feature enables you to receive notifications when a certain event occurs inside your bucket. To get notifications, first, add a notification configuration that reads the event you want Amazon S3 to publish and the destinations where Amazon S3 will send the notifications. T
5 min read
Machine Learing (ML) Services Offered By Amazon Web Services (AWS)
In today's rapidly evolving technologies, harnessing the power of cloud computing has become imperative for businesses striving to stay ahead. Among the many cloud computing platforms, AWS is the most used cloud computing platform. In this guide, I will make sure that you will understand what is AWS
10 min read