- Newest
- Most votes
- Most comments
Hello.
Now my question is, if I delete the load balancer, will my sites continue to work properly along with HTTP and HTTPS with SSL without any errors? Or are things tied together and they will break if I remove the load balancer.
If you are accessing EC2 via ALB, your site may become unusable if you delete ALB.
You must ensure that the load balancer is not in use before deleting it.
For example, if you check the load balancer's target group and EC2 is not linked, it is not being used.
You can check the target group used by ALB from the listener screen.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
In addition, if you access the load balancer's DNS name using HTTP from your browser and the website is not displayed, it may not be in use.
Also, I think it would be a good idea to check if the ALB domain is set by searching for the domain's hosted zone.
The target group looks like this: For both HTTP and HTTPS:
and the loadbalancer screen looks like this:
If I try to access the loadbalancer DNS that ends with ".us-east-1.elb.amazonaws.com" then I get a "This site can’t be reached" page.
Lastly, Not sure how do I check if ALB domain is set in hosted zone? What should I look out for?
You have no targets in the target group. Therefore as Riku said it’s not in use.
Relevant content
- Accepted Answerasked 8 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 months ago
If EC2 or anything else is not set in the target group, I don't think it's being used, so I don't think there's any problem with deleting it.
Thanks a lot Riku. Based on the feedback, I am thinking of deleting the load balancer, but before I do that, just wanted to confirm some additional details.
So if all this and the additional screen shots I had posted seems like I am not using the load balancer, than I would like to delete it. Just making sure nothing will break :D
There is no problem in deleting the ALB since EC2 does not exist on the target.
Resources other than ALB will not disappear.