{"id":36155,"date":"2016-06-23T16:05:54","date_gmt":"2016-06-23T10:35:54","guid":{"rendered":"https:\/\/2thenew.today\/blog\/?p=36155"},"modified":"2016-12-19T15:02:54","modified_gmt":"2016-12-19T09:32:54","slug":"aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python","status":"publish","type":"post","link":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/","title":{"rendered":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)"},"content":{"rendered":"<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-36448\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/boto.png\" alt=\"boto\" width=\"699\" height=\"150\" \/><\/p>\n<p><a href=\"https:\/\/2thenew.today\/blog\/aws-auto-scaling-lifecycle-hooks-2\/\">Autoscaling is a service<\/a>\u00a0in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules.<\/p>\n<p>There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto.<\/p>\n<p>Before Creating \u00a0an Autoscaling Group\u00a0 we have to keep in mind the following steps:<\/p>\n<ol>\n<li><strong>Autoscaling Group<\/strong>: It is a group used for maintaining or scaling a set of EC2 instances in one or more availability zones. It is specific to a single region.<\/li>\n<li><strong>Launch Configuration<\/strong>: It is the information needed by the Autoscaling group to launch EC2 instances.<\/li>\n<li><strong>Scaling Policies and Alarms<\/strong>: It is the set of rules for determining when to scale an instance up or down in an autoscaling group.<\/li>\n<li><strong>Elastic Load Balancing (optional)<\/strong>: Add a load balancer to the autoscaling group to distribute traffic and scale instances based on scaling policies.<\/li>\n<\/ol>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-36439 aligncenter\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/20140105144132.png\" alt=\"20140105144132\" width=\"535\" height=\"543\" \/><\/p>\n<p>Here we are taking a use case to create an Autoscaling group with ELB and <a href=\"https:\/\/2thenew.today\/blog\/aws-step-auto-scaling-policies\/\">configure scaling policies<\/a> in which an instance is scaled up when CPU Utilization is greater than 70% and scaled down when CPU utilization is less than 40% over 2 cycles of 60 seconds each.<\/p>\n<h2>Steps to follow:<\/h2>\n<ol>\n<li><b>Connecting to ELB<br \/>\n<\/b>The first step for accessing ELB is to create connections to the service:<\/p>\n<p>[js]import boto<br \/>\nconn = boto.connect_elb()[\/js]<\/p>\n<\/li>\n<li><b>Getting all Load Balancers<br \/>\n<\/b>Retrieve existing load balancer information<\/p>\n<p>[js]conn.get_all_load_balancers()[\/js]<\/p>\n<\/li>\n<li><b>Creating Health Check:<br \/>\n<\/b>To create a load balancer we need to have the following information:<br \/>\n-Specific Port Listeners where ELB will ping to instances.<br \/>\n-HealthCheck or the ELB concept of a heartbeat. ELB uses this health check to see whether your instances are up or down.<br \/>\n-A list of Availability Zones.<\/p>\n<p>[js]<br \/>\nimport botofrom boto.ec2.elb import HealthCheck<br \/>\nconn=boto.connect_elb()<br \/>\nhc=HealthCheck(interval=20,healthy_threshold=2,unhealthy_threshold=4,target=&#8217;HTTP:80\/health&#8217;)<br \/>\n[\/js]<\/p>\n<\/li>\n<li><b>Creating Load Balancer<br \/>\n<\/b>Creating load balancer with the health check defined above.<\/p>\n<p>[js]<br \/>\nlb=conn.create_load_balancer(&#8216;my_elb&#8217;,[&#8216;us-east-1a&#8217;,&#8217;us-east-1b&#8217;],[(80, 80, &#8216;http&#8217;), (443, 8443, &#8216;tcp&#8217;)])<br \/>\nlb.configure_health_check(hc)<br \/>\n[\/js]<\/p>\n<\/li>\n<li><b>Creating Launch Configuration<br \/>\n<\/b>Creating a launch configuration for the Autoscaling group.<\/p>\n<p>[js]<br \/>\nimport boto.ec2.autoscale<br \/>\nfrom boto.ec2.autoscale import LaunchConfiguration<br \/>\nconn=boto.ec2.autoscale.connect_to_region(&quot;us-east-1&quot;,profile_name=&#8217;selectcloud&#8217;)<br \/>\nlc=LaunchConfiguration(name=&quot;boto&quot;,image_id=&#8217;ami-id&#8217;,key_name=&#8217;key&#8217;,security_groups=[security_grpid-1,security-grpid-2],instance_type=\u2019t2.small\u2019)<br \/>\nconn.create_launch_configuration(lc)<br \/>\n[\/js]<\/p>\n<\/li>\n<li><b>Getting all Autoscaling Groups<br \/>\n<\/b>Retrieving existing Autoscaling groups.<\/p>\n<p>[js]conn.get_all_groups()[\/js]<\/p>\n<\/li>\n<li><b>Creating Autoscaling Group<br \/>\n<\/b>Creating an autoscaling group with the launch configuration defined above.<\/p>\n<p>[js]<br \/>\nfrom boto.ec2.autoscale import AutoScalingGroup<br \/>\nag=AutoScalingGroup(group_name=&#8217;boto_group&#8217;,load_balancers=[&#8216;myelb1&#8217;],availability_zones=[&#8216;us-east-1c&#8217;,&#8217;us-east-1b&#8217;],launch_config=lc,min_size=1,max_size=3,connection=conn)<br \/>\nconn.create_auto_scaling_group(ag)<br \/>\n[\/js]<\/p>\n<\/li>\n<li><b>To view Activities on Autoscaling Group<br \/>\n<\/b>To view activity on an Autoscaling group<\/p>\n<p>[js]conn.get_all_activities(ag)[\/js]<\/p>\n<\/li>\n<li><b>Scaling a Group Up or Down<br \/>\n<\/b>Creating scale up and scale down policies with cooldown period of 180<\/p>\n<p>[js]<br \/>\nscale_up_policy=ScalingPolicy(name=&#8217;scale_up&#8217;,adjustment_type=&#8217;ChangeInCapacity&#8217;,as_name=&#8217;boto_group&#8217;,scaling_adjustment=1,cooldown=180)<br \/>\nscale_down_policy=ScalingPolicy(name=&#8217;scale_down&#8217;, adjustment_type=&#8217;ChangeInCapacity&#8217;,as_name=&#8217;boto_group&#8217;,scaling_adjustment=-1, cooldown=180)<br \/>\nconn.create_scaling_policy(scale_down_policy)<br \/>\nconn.create_scaling_policy(scale_up_policy)[\/js]<\/p>\n<\/li>\n<li><b>Fetching ARN(Amazon Resource Name)<\/b>\n<p>[js]<br \/>\nscale_down_policy_arn=conn.get_all_policies(as_group=&#8217;boto_group&#8217;,policy_names=[&#8216;scale_down&#8217;])[0]<br \/>\nscale_up_policy_arn=conn.get_all_policies(as_group=&#8217;boto_group&#8217;,policy_names=[&#8216;scale_up&#8217;])[0]<br \/>\n[\/js]<\/p>\n<\/li>\n<li><b>Next, we\u2019ll create CloudWatch alarms that will determine when to run the Auto Scaling Policies.<\/b>\n<p>[js]<br \/>\nfrom boto.ec2.cloudwatch import MetricAlarm<br \/>\nimport boto.ec2.cloudwatch<br \/>\ncloudwatch=boto.ec2.cloudwatch.connect_to_region(&#8216;us-east-1&#8242;,profile_name=&#8217;selectcloud&#8217;)<br \/>\nalarm_dimensions={&quot;AutoScalingGroupName&quot;:&quot;boto_group&quot;}<br \/>\nscale_down_alarm=MetricAlarm(name=&#8217;scale_down_cpu&#8217;,namespace=&#8217;AWS\/EC2&#8242;,metric=&#8217;CPUUtilization&#8217;,statistic=&#8217;Average&#8217;,comparison='&lt;&#8216;,threshold=&#8217;40&#8217;,period=&#8217;60&#8217;, evaluation_periods=2,alarm_actions=[scale_down_policy_arn.policy_arn],dimensions=alarm_dimensions)<br \/>\nscale_up_alarm=MetricAlarm(name=&#8217;scale_up_cpu&#8217;, namespace=&#8217;AWS\/EC2&#8242;,metric=&#8217;CPUUtilization&#8217;, statistic=&#8217;Average&#8217;,comparison=&#8217;&gt;&#8217;, threshold=&#8217;70&#8217;,period=&#8217;60&#8217;, evaluation_periods=2,alarm_actions=[scale_up_policy_arn.policy_arn],dimensions=alarm_dimensions)<br \/>\ncloudwatch.create_alarm(scale_up_alarm)<br \/>\ncloudwatch.create_alarm(scale_down_alarm)<br \/>\n[\/js]<\/p>\n<\/li>\n<\/ol>\n<p>Hope this was useful to you for implementing AWS Autoscaling. The complete Boto script can be downloaded from here\u00a0for a ready reference.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Autoscaling is a service\u00a0in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating \u00a0an Autoscaling Group\u00a0 we have to [&hellip;]<\/p>\n","protected":false},"author":917,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":29,"footnotes":""},"categories":[1174,2348],"tags":[2098,248,2091,1262,1929,1746,2092,1611,1892,3236,1358,1790],"class_list":["post-36155","post","type-post","status-publish","format-standard","hentry","category-aws-2","category-devops-technology","tag-auto-scaling-policies","tag-aws","tag-aws-autoscaling-groups","tag-aws-cloud-watch","tag-aws-cloud-watch-alarms","tag-aws-elb","tag-aws-launch-configuration","tag-boto","tag-devops","tag-devops-aws","tag-python","tag-python-scripting"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Mayur Rastogi\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#article\",\"name\":\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog\",\"headline\":\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mayur-rastogi\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2016\\\/06\\\/boto.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#articleImage\"},\"datePublished\":\"2016-06-23T16:05:54+05:30\",\"dateModified\":\"2016-12-19T15:02:54+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#webpage\"},\"articleSection\":\"AWS, DevOps, Auto Scaling Policies, aws, Aws Autoscaling Groups, AWS cloud Watch, AWS cloud Watch alarms, AWS ELB, AWS Launch Configuration, boto, devops, devops aws, python, Python Scripting\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"name\":\"AWS\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"position\":2,\"name\":\"AWS\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#listItem\",\"name\":\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#listItem\",\"position\":3,\"name\":\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/aws-2\\\/#listItem\",\"name\":\"AWS\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mayur-rastogi\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mayur-rastogi\\\/\",\"name\":\"Mayur Rastogi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/bbe1e64c-d560-4de3-9fb2-9d937b898cef_mayur.rastogi@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Mayur Rastogi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/\",\"name\":\"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog\",\"description\":\"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mayur-rastogi\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/mayur-rastogi\\\/#author\"},\"datePublished\":\"2016-06-23T16:05:54+05:30\",\"dateModified\":\"2016-12-19T15:02:54+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog","description":"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to","canonical_url":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#article","name":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog","headline":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)","author":{"@id":"https:\/\/2thenew.today\/blog\/author\/mayur-rastogi\/#author"},"publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2016\/06\/boto.png","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#articleImage"},"datePublished":"2016-06-23T16:05:54+05:30","dateModified":"2016-12-19T15:02:54+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#webpage"},"articleSection":"AWS, DevOps, Auto Scaling Policies, aws, Aws Autoscaling Groups, AWS cloud Watch, AWS cloud Watch alarms, AWS ELB, AWS Launch Configuration, boto, devops, devops aws, python, Python Scripting"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.today\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/aws-2\/#listItem","name":"AWS"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/aws-2\/#listItem","position":2,"name":"AWS","item":"https:\/\/2thenew.today\/blog\/category\/aws-2\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#listItem","name":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#listItem","position":3,"name":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.today\/blog\/category\/aws-2\/#listItem","name":"AWS"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.today\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.today\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.today\/blog\/author\/mayur-rastogi\/#author","url":"https:\/\/2thenew.today\/blog\/author\/mayur-rastogi\/","name":"Mayur Rastogi","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/bbe1e64c-d560-4de3-9fb2-9d937b898cef_mayur.rastogi@tothenew.com.jpg","width":96,"height":96,"caption":"Mayur Rastogi"}},{"@type":"WebPage","@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#webpage","url":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/","name":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog","description":"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.today\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.today\/blog\/author\/mayur-rastogi\/#author"},"creator":{"@id":"https:\/\/2thenew.today\/blog\/author\/mayur-rastogi\/#author"},"datePublished":"2016-06-23T16:05:54+05:30","dateModified":"2016-12-19T15:02:54+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.today\/blog\/#website","url":"https:\/\/2thenew.today\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.today\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog","og:description":"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to","og:url":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/","og:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python) | TO THE NEW Blog","twitter:description":"Autoscaling is a service in AWS, which is used to launch or terminate an instance based on user-defined policies, health checks, and schedules. There are several ways to configure an auto-scaling group in AWS, here we are focusing on implementing it in python using AWS python module boto. Before Creating an Autoscaling Group we have to","twitter:image":"https:\/\/2thenew.today\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"36155","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 14:48:08","updated":"2024-02-29 09:25:23","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.today\/blog\/category\/aws-2\/\" title=\"AWS\">AWS<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAWS Autoscaling group configured with ELB and Alarms in Boto (Python)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.today\/blog"},{"label":"AWS","link":"https:\/\/2thenew.today\/blog\/category\/aws-2\/"},{"label":"AWS Autoscaling group configured with ELB and Alarms in Boto (Python)","link":"https:\/\/2thenew.today\/blog\/aws-autoscaling-group-configured-with-elb-and-alarms-in-boto-python\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/36155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/users\/917"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/comments?post=36155"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/posts\/36155\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/media?parent=36155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/categories?post=36155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.today\/blog\/wp-json\/wp\/v2\/tags?post=36155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}