Skip to main content

Amazon EC2 Auto Scaling

Amazon EC2 Auto Scaling Getting Started

\n \n

There are several ways to get started with Amazon EC2 Auto Scaling. This page provides resources that can help you manage and scale your EC2 fleets quickly and easily.

\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"ams#c2","itemHeading":" ","itemLongLoc":"

  

"},"metadata":{"tags":[]}},{"fields":{"patternHeading":"How to get started","patternBoolean2":"false","id":"ams#text-columnsc3#pattern-data","patternSubheading":" "},"metadata":{"tags":[{"name":"pattern-data","description":"Default pattern data","id":"ams#text-columnsc3#pattern-data","namespaceId":"text-columns"}]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"1ca0feb015","rt-text.js":"74c47cda70","rt-text.css":"995d0d3dfb","rt-text.rtl.css":"b2627249cb","rt-text.css.js":"ca05fecb25","rt-text.rtl.css.js":"7b37b895ca"},"settings":{"templateMappings":{"itemBodyContent":"itemLongLoc","itemHeading":"itemHeading","patternHeading":"patternHeading","patternSubheader":"patternSubheading","patternDark":"patternBoolean2"}}}

How to get started

There are several ways to get started with Amazon EC2 Auto Scaling. This page provides resources that can help you manage and scale your EC2 fleets quickly and easily.

  

\n \n

Create an account and sign into the console. With Amazon EC2, you pay only for what you use. If you are a new AWS customer, you can get started with Amazon EC2 for free. For more information, see AWS Free Tier.

\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"media-stepsams#c3","itemHeading":"Create a launch template","itemBoolean":"false","itemLongLoc":"\n \n \n

In the Amazon EC2 Dashboard, choose \"Launch Templates\" to create a launch template, specifying a name, AMI, instance type, and other details. Below are some guidelines on setting up your first launch template.

\n
    \n
  • Choose an Amazon Machine Image (AMI): We recommend the Amazon Linux 2 AMI (free-tier eligible). 
  • \n
  • Choose an instance type: We recommend the t2.micro (free-tier eligible).
  • \n
  • Security group: You have the option to configure your virtual firewall.
  • \n
\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"media-stepsams#c4","itemHeading":"Create an Auto Scaling group","itemBoolean":"false","itemLongLoc":"\n \n \n

Using the Auto Scaling wizard, create an Auto Scaling group specifying a name, size, and network for your Auto Scaling group.

\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"media-stepsams#c5","itemHeading":"Add Elastic Load Balancers (Optional)","itemBoolean":"false","itemLongLoc":"\n \n \n

When you set up Auto Scaling with Elastic Load Balancing, you can automatically distribute incoming application traffic across Amazon EC2 instances within your Auto Scaling groups to build highly available, fault-tolerant applications.

\n

Associate your load balancer with your Auto Scaling group to distribute traffic for your application across a fleet of EC2 instances that can scale with demand.

\n

You must first create a load balancer.

\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"media-stepsams#c6","itemHeading":"Configure Scaling Policies (Optional)","itemBoolean":"false","itemLongLoc":"\n \n \n

Configure scaling policies for your Amazon EC2 Auto Scaling group.

\n \n"},"metadata":{"tags":[]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"30c42705c8","rt-da-steps-collection.css":"75005a0a0d","rt-da-steps-collection.rtl.css":"8e141c6334","rt-da-steps-collection.js":"9af6ba7e4b","rt-da-steps-collection.css.js":"9b316f030e","rt-da-steps-collection.rtl.css.js":"e63232b737"},"settings":{"templateMappings":{"patternHeading":"patternHeading","patternSubheading":"patternSubheading","patternDark":"patternBoolean2","heading":"itemHeading","body":"itemLongLoc","dark":"itemBoolean","hyperlinkText":"itemCTALabel","hyperlinkUrl":"itemCTAURL","mediaAltText":"itemMediaAltText","mediaUrl":"itemMediaURL"}}}
\n \n

Create an account and sign into the console. With Amazon EC2, you pay only for what you use. If you are a new AWS customer, you can get started with Amazon EC2 for free. For more information, see AWS Free Tier.

\n \n"},{"@type":"HowToStep","position":2,"name":"Create a launch template","text":"\n \n \n

In the Amazon EC2 Dashboard, choose \"Launch Templates\" to create a launch template, specifying a name, AMI, instance type, and other details. Below are some guidelines on setting up your first launch template.

\n
    \n
  • Choose an Amazon Machine Image (AMI): We recommend the Amazon Linux 2 AMI (free-tier eligible). 
  • \n
  • Choose an instance type: We recommend the t2.micro (free-tier eligible).
  • \n
  • Security group: You have the option to configure your virtual firewall.
  • \n
\n \n"},{"@type":"HowToStep","position":3,"name":"Create an Auto Scaling group","text":"\n \n \n

Using the Auto Scaling wizard, create an Auto Scaling group specifying a name, size, and network for your Auto Scaling group.

\n \n"},{"@type":"HowToStep","position":4,"name":"Add Elastic Load Balancers (Optional)","text":"\n \n \n

When you set up Auto Scaling with Elastic Load Balancing, you can automatically distribute incoming application traffic across Amazon EC2 instances within your Auto Scaling groups to build highly available, fault-tolerant applications.

\n

Associate your load balancer with your Auto Scaling group to distribute traffic for your application across a fleet of EC2 instances that can scale with demand.

\n

You must first create a load balancer.

\n \n"},{"@type":"HowToStep","position":5,"name":"Configure Scaling Policies (Optional)","text":"\n \n \n

Configure scaling policies for your Amazon EC2 Auto Scaling group.

\n \n"}]}

AWS Management Console

1. Sign into the AWS Management Console

Create an account and sign into the console. With Amazon EC2, you pay only for what you use. If you are a new AWS customer, you can get started with Amazon EC2 for free. For more information, see AWS Free Tier.

2. Create a launch template

In the Amazon EC2 Dashboard, choose "Launch Templates" to create a launch template, specifying a name, AMI, instance type, and other details. Below are some guidelines on setting up your first launch template.

  • Choose an Amazon Machine Image (AMI): We recommend the Amazon Linux 2 AMI (free-tier eligible). 
  • Choose an instance type: We recommend the t2.micro (free-tier eligible).
  • Security group: You have the option to configure your virtual firewall.

3. Create an Auto Scaling group

Using the Auto Scaling wizard, create an Auto Scaling group specifying a name, size, and network for your Auto Scaling group.

4. Add Elastic Load Balancers (Optional)

When you set up Auto Scaling with Elastic Load Balancing, you can automatically distribute incoming application traffic across Amazon EC2 instances within your Auto Scaling groups to build highly available, fault-tolerant applications.

Associate your load balancer with your Auto Scaling group to distribute traffic for your application across a fleet of EC2 instances that can scale with demand.

You must first create a load balancer.

5. Configure Scaling Policies (Optional)

Configure scaling policies for your Amazon EC2 Auto Scaling group.

\n \n

You can access the features of Amazon EC2 Auto Scaling using the AWS CLI, which provides commands for a broad set of AWS products, including Amazon EC2 and Amazon CloudWatch. For more information about the commands for Amazon EC2 Auto Scaling, see the Amazon EC2 Auto Scaling section of the AWS Command Line Interface Reference.

\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"ams#c2","itemHeading":" ","itemLongLoc":"

  

"},"metadata":{"tags":[]}},{"fields":{"patternHeading":"AWS Command Line Tools (CLI)","patternBoolean2":"false","id":"ams#text-columnsc3#pattern-data","patternSubheading":" "},"metadata":{"tags":[{"name":"pattern-data","description":"Default pattern data","id":"ams#text-columnsc3#pattern-data","namespaceId":"text-columns"}]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"1ca0feb015","rt-text.js":"74c47cda70","rt-text.css":"995d0d3dfb","rt-text.rtl.css":"b2627249cb","rt-text.css.js":"ca05fecb25","rt-text.rtl.css.js":"7b37b895ca"},"settings":{"templateMappings":{"itemBodyContent":"itemLongLoc","itemHeading":"itemHeading","patternHeading":"patternHeading","patternSubheader":"patternSubheading","patternDark":"patternBoolean2"}}}

AWS Command Line Tools (CLI)

You can access the features of Amazon EC2 Auto Scaling using the AWS CLI, which provides commands for a broad set of AWS products, including Amazon EC2 and Amazon CloudWatch. For more information about the commands for Amazon EC2 Auto Scaling, see the Amazon EC2 Auto Scaling section of the AWS Command Line Interface Reference.

  

\n \n

Get started with Amazon EC2 Auto Scaling by using APIs tailored to your programming language or platform, or AWS Mobile SDK to help you build high-quality mobile apps quickly and easily. See Tools for Amazon Web Services for more information.

\n \n"},"metadata":{"tags":[]}},{"fields":{"id":"ams#c2","itemHeading":" ","itemLongLoc":"

  

"},"metadata":{"tags":[]}},{"fields":{"patternHeading":"AWS Software Development Kits (SDKs)","patternBoolean2":"false","id":"ams#text-columnsc3#pattern-data","patternSubheading":" "},"metadata":{"tags":[{"name":"pattern-data","description":"Default pattern data","id":"ams#text-columnsc3#pattern-data","namespaceId":"text-columns"}]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"1ca0feb015","rt-text.js":"74c47cda70","rt-text.css":"995d0d3dfb","rt-text.rtl.css":"b2627249cb","rt-text.css.js":"ca05fecb25","rt-text.rtl.css.js":"7b37b895ca"},"settings":{"templateMappings":{"itemBodyContent":"itemLongLoc","itemHeading":"itemHeading","patternHeading":"patternHeading","patternSubheader":"patternSubheading","patternDark":"patternBoolean2"}}}

AWS Software Development Kits (SDKs)

Get started with Amazon EC2 Auto Scaling by using APIs tailored to your programming language or platform, or AWS Mobile SDK to help you build high-quality mobile apps quickly and easily. See Tools for Amazon Web Services for more information.

  

\n \n

Amazon EC2 Auto Scaling Target Tracking Policies.

\n \n","itemMediaAltText":"Presentation slide titled 'Set it and Forget it: Auto Scaling Target Tracking Policies' by Andre Dufour, AWS Automation and Messaging, dated November 6, 2017. The slide includes AWS branding and an icon representing scaling or growth.","itemMediaURL2":"https://d1.awsstatic.com/onedam/marketing-channels/website/aws/en_US/getting-started/approved/images/b585dad1-a15a-44c0-a37c-f8c6cd75e881.7b3a8f9b33b2f17d16db3cb74035fcc2cb80992b.jpeg","itemOption":"right","itemMediaURL":"https://www.youtube.com/watch?time_continue=1&v=srofVz6xvkE&embeds_referring_euri=https%3A%2F%2Faws.amazon.com%2F&embeds_referring_origin=https%3A%2F%2Faws.amazon.com","id":"ams#c1","itemHeading":"Set it and Forget it Auto Scaling Target Tracking Policies","itemBoolean":"false","itemTextLoc2":"Play video"},"metadata":{"tags":[]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"888b268be7","rt-text-media-collection.js":"1b5699401c","rt-text-media-collection.css":"1ef21c9e0c","rt-text-media-collection.rtl.css":"a1ce789b01","rt-text-media-collection.css.js":"4072116b69","rt-text-media-collection.rtl.css.js":"648163a90c"},"settings":{"templateMappings":{"hyperlinkText":"itemCTALabel","hyperlinkUrl":"itemCTAURL","itemCodeButton":"itemCodeButton","heading":"itemHeading","dark":"itemBoolean","videoOverlayDark":"itemBoolean","mediaAltText":"itemMediaAltText","mediaPosition":"itemOption","mediaUrl":"itemMediaURL","subheader":"itemTextLoc","bodyContent":"itemLongLoc","videoThumbnailUrl":"itemMediaURL2","videoOverlayTitle":"itemMediaAltText2","videoPlayButtonText":"itemTextLoc2"}}}

Set it and Forget it Auto Scaling Target Tracking Policies

Amazon EC2 Auto Scaling Target Tracking Policies.

\n \n

Automating Management of Amazon EC2 Instances.

\n \n","itemMediaAltText":"Diagram illustrating AWS Auto Scaling concepts, comparing Fleet Management and Dynamic Scaling. The image shows groups of EC2 instances managed via an Auto Scaling group and load balancer (ELB), with dynamic scaling also incorporating a CPU utilization metric chart.","itemMediaURL2":"https://d1.awsstatic.com/onedam/marketing-channels/website/aws/en_US/getting-started/approved/images/7080099e-8dcb-49cc-800a-1ad0a070ccb7.0085b3166cc71b07ebe7b01d332fc15cf9a7b1fb.jpeg","itemOption":"left","itemMediaURL":"https://www.youtube.com/watch?time_continue=1&v=bSRTAMPqS3E&embeds_referring_euri=https%3A%2F%2Faws.amazon.com%2F&embeds_referring_origin=https%3A%2F%2Faws.amazon.com","id":"ams#c1","itemHeading":"Automating Management of Amazon EC2 Instances","itemBoolean":"false","itemTextLoc2":"Play video"},"metadata":{"tags":[]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"888b268be7","rt-text-media-collection.js":"1b5699401c","rt-text-media-collection.css":"1ef21c9e0c","rt-text-media-collection.rtl.css":"a1ce789b01","rt-text-media-collection.css.js":"4072116b69","rt-text-media-collection.rtl.css.js":"648163a90c"},"settings":{"templateMappings":{"hyperlinkText":"itemCTALabel","hyperlinkUrl":"itemCTAURL","itemCodeButton":"itemCodeButton","heading":"itemHeading","dark":"itemBoolean","videoOverlayDark":"itemBoolean","mediaAltText":"itemMediaAltText","mediaPosition":"itemOption","mediaUrl":"itemMediaURL","subheader":"itemTextLoc","bodyContent":"itemLongLoc","videoThumbnailUrl":"itemMediaURL2","videoOverlayTitle":"itemMediaAltText2","videoPlayButtonText":"itemTextLoc2"}}}

Automating Management of Amazon EC2 Instances

Automating Management of Amazon EC2 Instances.

\n \n

Amazon EC2 Auto Scaling Lifecycle Hooks Made Easier.

\n \n","itemMediaAltText":"A person sits at a desk with a laptop, presenting a tutorial about making Auto Scaling lifecycle hooks easier. The text 'LIFECYCLE HOOKS MADE EASIER - AUTO SCALING' is overlaid on the image.","itemMediaURL2":"https://d1.awsstatic.com/onedam/marketing-channels/website/aws/en_US/getting-started/approved/images/a8223f42-08c2-4aab-a419-c7b18772c1b8.9fdaa2b21ea99cd3cb35f2284550a738385336a2.jpeg","itemOption":"right","itemMediaURL":"https://www.youtube.com/watch?time_continue=27&v=oglXFzUIPJQ&embeds_referring_euri=https%3A%2F%2Faws.amazon.com%2F&embeds_referring_origin=https%3A%2F%2Faws.amazon.com","id":"ams#c1","itemHeading":"Auto Scaling Lifecycle Hooks Made Easier","itemBoolean":"false","itemTextLoc2":"Play video"},"metadata":{"tags":[]}}]},"metadata":{"auth":{},"testAttributes":{}},"context":{"page":{"pageUrl":"https://aws.amazon.com/ec2/autoscaling/getting-started/"},"contentType":"page","environment":{"stage":"prod","region":"us-west-2"},"sdkVersion":"3.0.2"},"refMap":{"manifest.js":"888b268be7","rt-text-media-collection.js":"1b5699401c","rt-text-media-collection.css":"1ef21c9e0c","rt-text-media-collection.rtl.css":"a1ce789b01","rt-text-media-collection.css.js":"4072116b69","rt-text-media-collection.rtl.css.js":"648163a90c"},"settings":{"templateMappings":{"hyperlinkText":"itemCTALabel","hyperlinkUrl":"itemCTAURL","itemCodeButton":"itemCodeButton","heading":"itemHeading","dark":"itemBoolean","videoOverlayDark":"itemBoolean","mediaAltText":"itemMediaAltText","mediaPosition":"itemOption","mediaUrl":"itemMediaURL","subheader":"itemTextLoc","bodyContent":"itemLongLoc","videoThumbnailUrl":"itemMediaURL2","videoOverlayTitle":"itemMediaAltText2","videoPlayButtonText":"itemTextLoc2"}}}

Auto Scaling Lifecycle Hooks Made Easier

Amazon EC2 Auto Scaling Lifecycle Hooks Made Easier.

Did you find what you were looking for today?

Let us know so we can improve the quality of the content on our pages.