{"id":21374,"date":"2015-06-22T11:54:53","date_gmt":"2015-06-22T06:24:53","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=21374"},"modified":"2015-06-22T11:55:26","modified_gmt":"2015-06-22T06:25:26","slug":"attach-and-detach-elastic-load-balancers-from-auto-scaling-groups","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/attach-and-detach-elastic-load-balancers-from-auto-scaling-groups\/","title":{"rendered":"Attach and Detach Elastic Load Balancers from Auto-Scaling Groups"},"content":{"rendered":"<p>Recently AWS started a new feature of attaching and detaching the Load Balancer in an Auto-Scaling Group.<br \/>\nIf we attach a load balancer to an auto-scaling group it allows the load balancer to send traffic to the EC2 instance in the group. And when we are detaching a load balancer from a group stops it from sending traffic.<\/p>\n<p>I have 2 load balancer, initially:<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-105739.png\" alt=\"Screenshot from 2015-06-22 10:57:39\" width=\"515\" height=\"214\" class=\"alignnone size-full wp-image-21411\" \/><br \/>\n<strong>1.<\/strong> Attaching a single load balancer.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-110458.png\" alt=\"Screenshot from 2015-06-22 11:04:58\" width=\"406\" height=\"105\" class=\"alignnone size-full wp-image-21413\" \/><br \/>\n<strong>2.<\/strong> Editing the attached load balancer.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-105849.png\" alt=\"Screenshot from 2015-06-22 10:58:49\" width=\"460\" height=\"251\" class=\"alignnone size-full wp-image-21415\" \/><br \/>\n<strong>3.<\/strong> Selecting the load balancer to be attached.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-105924.png\" alt=\"Screenshot from 2015-06-22 10:59:24\" width=\"570\" height=\"135\" class=\"alignnone size-full wp-image-21417\" \/><br \/>\n<strong>4.<\/strong> After adding the load balancer.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-105930.png\" alt=\"Screenshot from 2015-06-22 10:59:30\" width=\"556\" height=\"175\" class=\"alignnone size-full wp-image-21420\" \/><br \/>\n<strong>5.<\/strong> Click on save.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-1059431.png\" alt=\"Screenshot from 2015-06-22 10:59:43\" width=\"345\" height=\"107\" class=\"alignnone size-full wp-image-21419\" \/><br \/>\n<strong>6.<\/strong> We can even change the current load balancer of the auto-scaling group.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-111225.png\" alt=\"Screenshot from 2015-06-22 11:12:25\" width=\"573\" height=\"127\" class=\"alignnone size-full wp-image-21425\" \/><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/06\/Screenshot-from-2015-06-22-111348.png\" alt=\"Screenshot from 2015-06-22 11:13:48\" width=\"357\" height=\"106\" class=\"alignnone size-full wp-image-21427\" \/><\/p>\n<p>With this feature we can manage our auto-scaling groups in a better way, by simply just editing them.<br \/>\nPlease feel free to ask any doubts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently AWS started a new feature of attaching and detaching the Load Balancer in an Auto-Scaling Group. If we attach a load balancer to an auto-scaling group it allows the load balancer to send traffic to the EC2 instance in the group. And when we are detaching a load balancer from a group stops it [&hellip;]<\/p>\n","protected":false},"author":261,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1},"categories":[1174],"tags":[572,1217,1749],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/21374"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/261"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=21374"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/21374\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=21374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=21374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=21374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}