{"id":93781,"date":"2024-03-04T21:47:19","date_gmt":"2024-03-04T16:17:19","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=93781"},"modified":"2024-03-22T15:28:06","modified_gmt":"2024-03-22T09:58:06","slug":"amazon-ec2-auto-scaling","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/","title":{"rendered":"How to create and configure an Amazon EC2 Auto Scaling using the AWS Management Console"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Amazon EC2 Auto Scaling assists in maintaining application availability by allowing you to automatically add or remove EC2 instances based on defined scaling policies.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The benefits of AWS auto-scaling for EC2 instances are numerous, primarily focusing on <strong>improved fault tolerance, enhanced availability, and efficient cost management.<\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400;\">This article covers a detailed overview of AWS EC2 Autoscaling, EC2 auto-scaling components, steps to create and configure an Amazon EC2 Auto Scaling using the AWS Management Console, and end up with Amazon EC2 Auto Scaling best practices.<\/span><\/p>\n<p>Having a thorough understanding of <span style=\"font-weight: 400;\">AWS EC2 Autoscaling helps to ace the <\/span><a href=\"https:\/\/www.whizlabs.com\/aws-solutions-architect-associate\/\" target=\"_blank\" rel=\"noopener\">AWS Certified Solutions Architect \u2013 Associate Certification<\/a> easily.<\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s dive in!<\/span><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/#What_is_AWS_EC2_Autoscaling\" >What is AWS EC2 Autoscaling?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/#EC2_Auto_Scaling_Components\" >EC2 Auto Scaling Components<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/#How_Does_EC2_Auto_Scaling_Work\" >How Does EC2 Auto Scaling Work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/#How_to_create_and_configure_an_Amazon_EC2_Auto_Scaling_using_the_AWS_Management_Console\" >How to create and configure an Amazon EC2 Auto Scaling using the AWS Management Console?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/#AWS_EC2_Auto_Scaling_Best_Practices\" >AWS EC2 Auto Scaling Best Practices<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/amazon-ec2-auto-scaling\/#FAQs\" >FAQs<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"What_is_AWS_EC2_Autoscaling\"><\/span><span style=\"font-weight: 400;\">What is AWS EC2 Autoscaling?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.whizlabs.com\/blog\/aws-auto-scaling\/\" target=\"_blank\" rel=\"noopener\">AWS auto-scaling<\/a> helps to scale up and down the EC2 instances based on the incoming traffic. The scaling up and down of the applications can be carried out in a few minutes depending on the traffic and decreases the application latency to end users.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0EC2 Auto Scaling is the counterpart of AWS Auto Scaling service, which offers automatic scaling of Amazon services.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">AWS Autoscaling can be integrated with multiple AWS services such as Amazon traffic, <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-dynamodb\/\" target=\"_blank\" rel=\"noopener\">Amazon DynamoDB<\/a>, and Amazon Aurora. When traffic is there, maximum resources will be utilized otherwise only minimum resources will be taken into account.\u00a0<\/span><\/p>\n<blockquote>\n<p class=\"LC20lb MBeuO DKV0Md\">Also Read: Free <a href=\"https:\/\/www.whizlabs.com\/blog\/aws-solutions-architect-associate-exam-questions\/\" target=\"_blank\" rel=\"noopener\">AWS Solutions Architect Associate Exam Questions<\/a><\/p>\n<\/blockquote>\n<h3><span class=\"ez-toc-section\" id=\"EC2_Auto_Scaling_Components\"><\/span><span style=\"font-weight: 400;\">EC2 Auto Scaling Components<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">AWS EC2 Auto Scaling comprises of three components:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Auto Scaling Group (ASG) decides where to launch the EC2 instances<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00a0a launch template helps to find what to scale<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">scaling policies define the users when to scale up and down<\/span><\/li>\n<\/ul>\n<p><b>Auto Scaling Groups<\/b><\/p>\n<p><span style=\"font-weight: 400;\">For scaling or administration purposes, Auto Scaling Groups (ASG) divide EC2 instances into logical units. You can indicate the minimum, maximum, and desired number of EC2 instances that you require when setting up an auto-scaling group.<\/span><\/p>\n<p><b>Start up templates<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Launch configurations are still offered as a legacy option, but the new launch template is a better method to set up auto-scaling.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The configuration details for newly created instances within an auto-scaling group are specified by launch templates. This contains the security groups, key pair, and Amazon Machine Image (AMI) to utilize when establishing the instance.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Versioning allows you to generate a subset of the parameter set, which you can then utilize to generate more launch templates. One way to generate new versions of a template is to programmatically insert various values into an existing default template that has common configuration parameters.<\/span><\/p>\n<p><b>Policies for scaling and additional choices<\/b><\/p>\n<p><span style=\"font-weight: 400;\">There are numerous methods to scale an instance group with EC2 Auto Scaling:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Adding or removing instances from the auto-scaling group is known as manual scaling.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">keeping a set quantity of instances, scaled by your requirements for the minimum, maximum, and recommended or desirable quantity of instances.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Target tracking allows for dynamic scaling based on a target load metric value.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Step scaling strategies include setting multiple thresholds for a given statistic and executing a scaling operation upon reaching each threshold.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Basic scaling policies are used to reduce and increase the group&#8217;s capacity by a predetermined percentage or instance count.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Growing a group according to the load in a SQS queue is known as scaling based on SQS.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Scaling on a schedule involves carrying out an event at predetermined times and dates.<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"How_Does_EC2_Auto_Scaling_Work\"><\/span><span style=\"font-weight: 400;\">How Does EC2 Auto Scaling Work?<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The <a href=\"https:\/\/www.whizlabs.com\/labs\/introduction-to-amazon-elastic-compute-cloud-ec2\" target=\"_blank\" rel=\"noopener\">AWS EC2 instance<\/a> follows a different lifecycle than other EC2 instances. The lifecycle begins when the auto scaling group releases the instances, or when the instances are added manually to a group. The lifecycle terminates when an instance ends or the auto-scaling group eliminates an instance and stops it.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-93784 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-EC2-Working.jpg\" alt=\"autoscaling group life style\" width=\"883\" height=\"543\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-EC2-Working.jpg 883w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-EC2-Working-300x184.jpg 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-EC2-Working-768x472.jpg 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-EC2-Working-150x92.jpg 150w\" sizes=\"(max-width: 883px) 100vw, 883px\" \/><\/p>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\">Source: <\/span><a href=\"https:\/\/docs.aws.amazon.com\/autoscaling\/ec2\/userguide\/AutoScalingGroupLifecycle.html\" target=\"_blank\" rel=\"nofollow noopener\"><span style=\"font-weight: 400;\">AWS<\/span><\/a><\/p>\n<p><b>Scale-Out<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Several events are termed scale-out events, which help to convey the autoscaling group to launch new computing instances and add them into the group when:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Group size is increased manually<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">\u00a0Scaling policy is active, which in turn automatically increases group size when criteria set in the policies are met<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A scheduled scaling event is enabled<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">When any of these events occur, the auto-scaling group generates new instances based on the group&#8217;s launch configuration. Initially, these new instances are in a &#8220;Pending&#8221; status. You have the option to incorporate lifecycle hooks to automatically execute actions when these instances are created.<\/span><\/p>\n<p><b>Instances in Service<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Once an instance is created and any associated lifecycle hooks are executed, it transitions to the &#8220;InService&#8221; status. It stays in this state until one of the following events occurs:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A &#8220;scale-in&#8221; event prompts the scaling group to terminate the instance, reducing its size.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A user manually places the instance into Standby.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A user manually detaches the instance from the group.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The instance fails a health check multiple times, leading to its removal from the group. It is then destroyed and replaced by a new instance.<\/span><\/li>\n<\/ul>\n<p><b>Scale In<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The following &#8220;scale-in&#8221; events lead an auto scaling group to remove an instance from the group and terminate it:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A user reduces the size of the group.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A scaling policy automatically reduces the group&#8217;s size when a specific criterion is met.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A scheduled event is defined to scale down the group at a designated time.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">It is crucial to define a scale-in event for every scale-out event to prevent unchecked scaling and instance sprawl.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Notably, there is no additional charge for AWS Auto Scaling itself. You only pay for the AWS resources required to run your applications and Amazon CloudWatch monitoring fees.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">However, in certain scenarios, EC2 Auto Scaling may result in high charges due to increased application load. To mitigate this, you can define scaling policies or utilize cost control options like Usage Budgets to limit your costs.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_create_and_configure_an_Amazon_EC2_Auto_Scaling_using_the_AWS_Management_Console\"><\/span><strong>How to create and configure an Amazon EC2 Auto Scaling using the AWS Management Console?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">This lab guides you through creating and configuring Amazon EC2 Auto Scaling with Launch templates using the AWS Management Console.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">First, you need to visit the <a href=\"https:\/\/www.whizlabs.com\/labs\/\" target=\"_blank\" rel=\"noopener\">Whizlabs hands-on page<\/a> to do the above task. After reaching the lab&#8217;s page, type the lab title in the search bar as <\/span><a href=\"https:\/\/www.whizlabs.com\/labs\/create-and-configure-amazon-ec2-auto-scaling-with-launch-templates\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Create and Configure Amazon EC2 Auto Scaling with Launch Templates<\/span><\/a><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Now click on the labs&#8217; page and follow the lab steps to proceed further.<\/span><\/p>\n<p><strong>The basic steps involved in EC2 Auto Scaling such as:<\/strong><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Sign in to AWS Management Console.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a security group for the Launch template<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a key pair for the Launch template.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a launch template<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create an EC2 Auto Scaling group<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Test Autoscaling group<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Validation of the lab<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Deleting AWS Resources<\/span><\/li>\n<\/ol>\n<p><b>Task 1: Sign in to the AWS Management Console<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click the &#8220;Open Console&#8221; button to access the AWS Console in a new browser tab.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">On the AWS sign-in page, leave the Account ID as default. Do not edit the 12-digit Account ID.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Copy your User Name and Password from the Lab Console to the IAM Username and Password in the AWS Console. Click on the &#8220;Sign In&#8221; button.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once signed in, set the default AWS Region to US East (N. Virginia) &#8211; us-east-1.<\/span><\/li>\n<\/ul>\n<p><b>Task 2: Create a Security Group for Launch Template<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Ensure you are in the N. Virginia Region.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Navigate to EC2 by selecting &#8220;Services&#8221; in the Compute section.\u00a0<\/span><span style=\"font-weight: 400;\">Set the Security group name to &#8220;Launch-template-SG&#8221; and the Description to &#8220;Security group for Launch template.&#8221;<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-93789 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group.webp\" alt=\"Security Group page\" width=\"682\" height=\"284\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group.webp 682w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group-300x125.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group-150x62.webp 150w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the left panel, choose &#8220;Security Groups&#8221; under the Network &amp; Security section.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click on &#8220;Create Security Group.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose the Default VPC and <\/span><span style=\"font-weight: 400;\">Add a rule under Inbound rules.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Set Type to &#8220;HTTP,&#8221; Source to &#8220;Custom,&#8221; and add &#8220;0.0.0.0\/0&#8221; in the textbox.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-93788 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/inbound-rules.webp\" alt=\"Amazon EC2 Auto Scaling type selection page \" width=\"489\" height=\"196\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/inbound-rules.webp 489w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/inbound-rules-300x120.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/inbound-rules-150x60.webp 150w\" sizes=\"(max-width: 489px) 100vw, 489px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click &#8220;Create Security Group.&#8221;<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-93787 size-full\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group-created.webp\" alt=\"security-group-created\" width=\"483\" height=\"77\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group-created.webp 483w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group-created-300x48.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/security-group-created-150x24.webp 150w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/p>\n<p><b>Task 3: Create a Key Pair for the Launch Template<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Select &#8220;Key Pairs&#8221; under Network &amp; Security in the left navigation pane and <\/span><span style=\"font-weight: 400;\">Click &#8220;Create Key Pair.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Fill in Name as &#8220;WhizKeyPair&#8221; and select file format (pem for Linux\/Mac, ppk for Windows) and <\/span><span style=\"font-weight: 400;\">Click &#8220;Create Key Pair.&#8221;<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93791\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/keypair.jpg\" alt=\"keypair\" width=\"241\" height=\"63\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/keypair.jpg 241w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/keypair-150x39.jpg 150w\" sizes=\"(max-width: 241px) 100vw, 241px\" \/><\/p>\n<p><b>Task 4: Creating a Launch Template<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the left navigation pane, select &#8220;Launch Templates&#8221; under Instances.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click &#8220;Create Launch Template.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Set the Launch template name to &#8220;whizlabsLC&#8221; and the Template version description to &#8220;Launch template for whizdemo.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose Amazon Linux 2 AMI (HVM), SSD Volume Type for Amazon machine image.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Under Instance type, select &#8220;t2.micro.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Choose &#8220;WhizKeyPair&#8221; for the Key pair (Login).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Under Networking settings, select &#8220;Select existing security group&#8221; and choose &#8220;Launch-template-SG.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Expand Advanced details, go to User data, and paste the provided script.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click &#8220;Create launch template.&#8221;<\/span><\/li>\n<\/ul>\n<p><b>Task 5: Create an Auto-Scaling Group<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to EC2 and select &#8220;Auto Scaling Groups&#8221; under Auto Scaling.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click &#8220;Create Auto Scaling Group.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Set the Auto Scaling group name to &#8220;Whiz-ASG&#8221; and select &#8220;whizlabsLC&#8221; as the Launch template.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93793\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-groups.webp\" alt=\"autoscaling groups\" width=\"700\" height=\"155\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-groups.webp 700w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-groups-300x66.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/autoscaling-groups-150x33.webp 150w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Configure VPC and subnets, and click &#8220;Next.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No changes are needed in Configure advanced options, click &#8220;Next.&#8221;<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93794\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/config-settings.webp\" alt=\"config settings\" width=\"599\" height=\"408\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/config-settings.webp 599w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/config-settings-300x204.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/config-settings-150x102.webp 150w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Set Desired capacity, Minimum capacity, and Maximum capacity to 2 under Configure group size and scaling policies.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93795\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/group-size.webp\" alt=\"group size\" width=\"593\" height=\"436\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/group-size.webp 593w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/group-size-300x221.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/group-size-150x110.webp 150w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Select &#8220;None&#8221; under Scaling policies &#8211; optional.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93796\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/scaling-policies.webp\" alt=\"scaling policies\" width=\"636\" height=\"219\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/scaling-policies.webp 636w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/scaling-policies-300x103.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/scaling-policies-150x52.webp 150w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Click through the remaining steps, adding tags if desired.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93797\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/tags.webp\" alt=\"tags\" width=\"592\" height=\"201\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/tags.webp 592w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/tags-300x102.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/tags-150x51.webp 150w\" sizes=\"(max-width: 592px) 100vw, 592px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Review and click &#8220;Create Auto Scaling Group.&#8221;<\/span><\/p>\n<p><b>Task 6: Test Auto Scaling Group<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Manually terminate one instance in the EC2 console.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93799\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances.jpg\" alt=\"instances\" width=\"681\" height=\"218\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances.jpg 681w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances-300x96.jpg 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances-150x48.jpg 150w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Confirm termination.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93800\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/terminate-intsance.webp\" alt=\"terminate intsance\" width=\"594\" height=\"384\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/terminate-intsance.webp 594w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/terminate-intsance-300x194.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/terminate-intsance-150x97.webp 150w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93801\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/termination-done.webp\" alt=\"termination done\" width=\"662\" height=\"189\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/termination-done.webp 662w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/termination-done-300x86.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/termination-done-150x43.webp 150w\" sizes=\"(max-width: 662px) 100vw, 662px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Monitor Auto Scaling Group in the Auto Scaling Groups page or Activity history to observe new instance launches.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93802\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/auto-scaling-groups.webp\" alt=\"auto scaling groups\" width=\"627\" height=\"161\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/auto-scaling-groups.webp 627w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/auto-scaling-groups-300x77.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/auto-scaling-groups-150x39.webp 150w\" sizes=\"(max-width: 627px) 100vw, 627px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93803\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances-end.webp\" alt=\"instances end\" width=\"617\" height=\"185\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances-end.webp 617w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances-end-300x90.webp 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/instances-end-150x45.webp 150w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><b>Task 7: Validation Test<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Click on the &#8220;Validation&#8221; button on the left panel to confirm the successful completion of the lab.<\/span><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-93805\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/validate.jpg\" alt=\"validate\" width=\"850\" height=\"527\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/validate.jpg 850w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/validate-300x186.jpg 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/validate-768x476.jpg 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/02\/validate-150x93.jpg 150w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/p>\n<p><b>Task 8: Delete AWS Resources<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Delete Auto Scaling Group:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">In the EC2 console, navigate to Auto Scaling Groups.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Select &#8220;Whiz-ASG&#8221; and click &#8220;Delete.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Confirm by entering &#8220;delete&#8221; and clicking &#8220;Delete.&#8221;<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Delete Launch Template:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">In the EC2 console, navigate to Launch Templates.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Select &#8220;WhizlabsLC,&#8221; click &#8220;Actions,&#8221; and choose &#8220;Delete template.&#8221;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Confirm by entering &#8220;Delete&#8221; and clicking &#8220;Delete.&#8221;<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"AWS_EC2_Auto_Scaling_Best_Practices\"><\/span><span style=\"font-weight: 400;\">AWS EC2 Auto Scaling Best Practices<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Here are some best practices that can help you to manage the AWS EC2 scaling effectively.\u00a0<\/span><\/p>\n<p><b>EC2 Instance Frequency<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Always make the Amazon EC2 Auto Scaling to be defined based upon load metrics which have a frequency rate of one minute. It ensures faster response to the changing application usage. You can use a scaling metric with a frequency of 5 minutes can slow down the response time, resulting in the scaling of events based on the old data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">By default, AWS EC2 offers basic monitoring, which keeps track every five minutes. It is highly recommended to turn on detailed monitoring to get updates for every single minute. But it may incur additional charges.<\/span><\/p>\n<p><b>Auto Scaling Group Health Check<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Ensure that the health check feature has been configured appropriately to detect that the EC2 instances get registered with autoscaling group functions properly. Or else, the auto-scaling group cannot carry out the basic functions such as deleting and replacing the failed instances.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">While using Amazon EC2 Auto Scaling to deliver the traffic between the instances within the autoscaling group, ensure that ELB health checks are turned on.<\/span><\/p>\n<p><b>Predictive Scaling Forecast<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Predictive scaling employs workload forecasting to determine the future capacity. Predictions must be of higher quality if the workloads follow a cyclical performance pattern.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It is better to run the predictive scaling in the forecast-only mode to find the quality of predictions and scaling actions generated by the policies. If you are okay with the predictions, then change the policy to \u201cforecast and scale\u201d.<\/span><\/p>\n<p><b>Auto Scaling Group Notifications<\/b><\/p>\n<p><span style=\"font-weight: 400;\">If you lack an alternative monitoring system for auto-scaling, ensure that your auto scaling group is set up to send email notifications for both scale-out and scale-in events. Enabling notifications involves associating an AWS SNS topic with the auto-scaling group, which then receives scaling events and forwards notifications to the specified email address established during the initial setup.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"flex-1 overflow-hidden\">\n<div class=\"react-scroll-to-bottom--css-ragob-79elbk h-full\">\n<div class=\"react-scroll-to-bottom--css-ragob-1n7m0yu\">\n<div class=\"flex flex-col text-sm pb-9\">\n<div class=\"w-full text-token-text-primary\" data-testid=\"conversation-turn-3\">\n<div class=\"px-4 py-2 justify-center text-base md:gap-6 m-auto\">\n<div class=\"flex flex-1 text-base mx-auto gap-3 md:px-5 lg:px-1 xl:px-5 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem] group final-completion\">\n<div class=\"relative flex w-full flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"30a96063-9438-41c1-96a1-58a6f61ca957\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light\">\n<div class=\"JlqpRe\"><strong><span class=\"JCzEY ZwRhJd\"><span class=\"CSkcDe\">Which AWS service allows automatic scaling of EC2 instances?<\/span><\/span><\/strong><\/div>\n<p>AWS CloudFormation enables the creation of Auto Scaling groups through the use of CloudFormation templates, facilitating automatic scaling of EC2 instances.<\/p>\n<p><strong>What is the purpose of Auto Scaling?<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"react-scroll-to-bottom--css-ragob-1n7m0yu\">\n<div class=\"flex flex-col text-sm pb-9\">\n<div class=\"w-full text-token-text-primary sm:AIPRM__conversation__response\" data-testid=\"conversation-turn-5\">\n<div class=\"px-4 py-2 justify-center text-base md:gap-6 m-auto\">\n<div class=\"flex flex-1 text-base mx-auto gap-3 md:px-5 lg:px-1 xl:px-5 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem] group final-completion\">\n<div class=\"relative flex w-full flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"57fb34a7-79cf-4f14-8626-de5dd25f5212\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light AIPRM__conversation__response\">\n<p>Auto Scaling serves the purpose of automating the adjustment of allocated compute, memory, or networking resources based on fluctuating traffic, ensuring efficient scaling in response to varying usage patterns and spikes in demand.<\/p>\n<p><b>What are the elements required to create an Amazon EC2 Auto Scaling?<\/b><\/p>\n<p><span style=\"font-weight: 400;\">To create Amazon EC2 Auto Scaling, you need to specify the data about the EC2 instances such as <\/span><span style=\"font-weight: 400;\">Amazon Machine Image (AMI), instance type, key pair, security groups, and block device mapping<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-size: 1.5em; font-weight: bold;\">Conclusion<\/span><\/p>\n<p>Hope this article details the steps on how to create and configure an Amazon EC2 Auto Scaling with the help of AWS Management Console.<\/p>\n<p>By mastering Amazon EC2 Auto Scaling, you can effectively contribute to the creation of resilient and scalable architectures, aligning with the best practices recommended by AWS.<\/p>\n<div class=\"react-scroll-to-bottom--css-ragob-1n7m0yu\">\n<div class=\"flex flex-col text-sm pb-9\">\n<div class=\"w-full text-token-text-primary sm:AIPRM__conversation__response\" data-testid=\"conversation-turn-13\">\n<div class=\"px-4 py-2 justify-center text-base md:gap-6 m-auto\">\n<div class=\"flex flex-1 text-base mx-auto gap-3 md:px-5 lg:px-1 xl:px-5 md:max-w-3xl lg:max-w-[40rem] xl:max-w-[48rem] group final-completion\">\n<div class=\"relative flex w-full flex-col agent-turn\">\n<div class=\"flex-col gap-1 md:gap-3\">\n<div class=\"flex flex-grow flex-col max-w-full\">\n<div class=\"min-h-[20px] text-message flex flex-col items-start gap-3 whitespace-pre-wrap break-words [.text-message+&amp;]:mt-5 overflow-x-auto\" data-message-author-role=\"assistant\" data-message-id=\"5e362084-6513-4a92-aefc-1f269f1a17a6\">\n<div class=\"markdown prose w-full break-words dark:prose-invert light AIPRM__conversation__response\">\n<p>For a deeper understanding of AWS Autoscaling, you can explore <a href=\"https:\/\/www.whizlabs.com\/aws-sandbox\/\" target=\"_blank\" rel=\"noopener\">AWS sandboxes<\/a> to gain hands-on experience.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Amazon EC2 Auto Scaling assists in maintaining application availability by allowing you to automatically add or remove EC2 instances based on defined scaling policies. The benefits of AWS auto-scaling for EC2 instances are numerous, primarily focusing on improved fault tolerance, enhanced availability, and efficient cost management. This article covers a detailed overview of AWS EC2 Autoscaling, EC2 auto-scaling components, steps to create and configure an Amazon EC2 Auto Scaling using the AWS Management Console, and end up with Amazon EC2 Auto Scaling best practices. Having a thorough understanding of AWS EC2 Autoscaling helps to ace the AWS Certified Solutions Architect [&hellip;]<\/p>\n","protected":false},"author":389,"featured_media":93944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[5113,5114],"class_list":["post-93781","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws-certifications","tag-amazon-ec2-auto-scaling","tag-ec2-auto-scaling"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",1280,720,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-150x150.webp",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-300x169.webp",300,169,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-768x432.webp",768,432,true],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-1024x576.webp",1024,576,true],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",1280,720,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",1280,720,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",24,14,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",48,27,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",96,54,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",150,84,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console.webp",300,169,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-250x250.webp",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-640x720.webp",640,720,true],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2024\/03\/How-to-create-and-configure-an-Amazon-EC2-Auto-Scaling-using-the-AWS-Management-Console-150x84.webp",150,84,true]},"uagb_author_info":{"display_name":"Karthikeyani Velusamy","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/karthikeyani-velusamy\/"},"uagb_comment_info":0,"uagb_excerpt":"Amazon EC2 Auto Scaling assists in maintaining application availability by allowing you to automatically add or remove EC2 instances based on defined scaling policies. The benefits of AWS auto-scaling for EC2 instances are numerous, primarily focusing on improved fault tolerance, enhanced availability, and efficient cost management. This article covers a detailed overview of AWS EC2&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/93781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=93781"}],"version-history":[{"count":12,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/93781\/revisions"}],"predecessor-version":[{"id":93897,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/93781\/revisions\/93897"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/93944"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=93781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=93781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=93781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}