Skip to content

InsightsCloud

EC2 Auto Scaling can now default every group to launch before terminate

On 27 October 2026 AWS announced an account-level launchBeforeTerminate setting for EC2 Auto Scaling. What it changes for instance refreshes and health-check replacements, how it interacts with instance maintenance policies, and what to check around capacity and reservations before enabling it.

Published November 2, 20266 min read

On 27 October 2026 AWS announced that Amazon EC2 Auto Scaling supports Launch Before Terminate at the account level. You can make "launch the replacement first" the default for every Auto Scaling group in an account, instead of configuring it group by group. The setting is managed with two new API operations, PutAccountSetting and DescribeAccountSettings, from the console, the CLI or the SDKs.

One detail about availability: the announcement page we verified is the AWS China one, and it lists the China (Beijing) and China (Ningxia) Regions. The general Auto Scaling User Guide documents the same launchBeforeTerminate setting. Run describe-account-settings in your own Region to see whether it is available to you before planning a rollout.

What changes

Without a policy, an Auto Scaling group replaces most instances by terminating the old one and launching a new one at the same time. The instance maintenance policy documentation lists the defaults:

EventDefault without a policy
Health check failureTerminate and launch
Instance refreshTerminate and launch
Maximum instance lifetimeTerminate and launch
RebalancingLaunch before terminating

With the account setting enabled, the group launches the replacement and waits for it to pass health checks before terminating the instance it replaces. The announcement names instance refreshes, rebalancing, health checks and maximum instance lifetime as the covered replacements.

Until now you could get this behaviour in two places: an instance maintenance policy on each group, or minimum and maximum healthy percentage preferences on each instance refresh. The account setting is a third, broader default. It does not replace the other two.

Precedence

The documentation is explicit about which setting wins:

  • With the setting enabled, groups with no instance maintenance policy use a minimum healthy percentage of 100 and a maximum healthy percentage of 110.
  • A group's own instance maintenance policy takes precedence.
  • Preferences passed to a specific instance refresh take precedence. A refresh started without them uses the 100 and 110 defaults when the group has no policy.

So the account setting is a floor for groups nobody has configured. Groups you already tuned keep their behaviour.

Enabling it

check, enable and revert the setting
# Current value in this Region
aws autoscaling describe-account-settings --name launchBeforeTerminate
 
# Enable
aws autoscaling put-account-setting --name launchBeforeTerminate --value enabled
 
# Revert
aws autoscaling put-account-setting --name launchBeforeTerminate --value disabled

Account settings apply to one Region. The documentation says to configure the setting in every Region where you want it to take effect. In the console it is on the EC2 Settings page, under the Auto Scaling groups tab, in the Launch before terminate section.

What it costs you

Launch before terminate is a trade of capacity headroom for availability. The documentation lists two considerations: the setting runs one extra instance for a short time during each replacement, and you pay for that instance while it runs. With a 110 percent maximum, a group of ten can briefly hold eleven.

For most web and API tiers that is a good trade. A health-check replacement no longer opens a gap in capacity, and an instance refresh no longer dips below the desired count while new instances warm up. A third-party hands-on test reported that, with the setting off, healthy targets fell from four to three for about 77 seconds during a replacement, and with it on they stayed at four. That was a single small test, so read it as an illustration of the mechanism, not a benchmark.

What to check first

Headroom in the group's limits. The group needs room to run the extra instance. A group whose maximum size equals its desired capacity may have no room for it. Look at the maximum size of your busiest groups, and test one group where the two are equal before you enable the setting across the account.

Quotas and instance availability. Each replacement needs capacity for one more instance. The documentation says that if the group cannot get capacity for the replacement, it keeps the original instance in service and retries, so the group does not lose capacity. The cost is a slower or stalled replacement. The documentation suggests giving the group more instance types and more Availability Zones, and making sure it can use On-Demand capacity.

Capacity Reservations. This is the case most likely to surprise a team that pays for reservations. If a reservation is fully used, the replacement needs an eleventh slot that does not exist, so it launches as regular On-Demand capacity. After the old instance terminates, what happens depends on how you reference the reservation:

Reservation typeResult after the old instance terminates
Open Capacity ReservationThe freed slot reclaims the On-Demand instance
Targeted, referenced through a resource groupThe freed slot reclaims the On-Demand instance
Targeted, referenced by a specific reservation IDOne instance stays On-Demand and one reserved slot stays unused

The documentation recommends open reservations, or targeted ones referenced through a resource group with CapacityReservationResourceGroupArns. Review how your groups reference reservations before you enable the setting.

Licensing and per-instance limits. Anything that counts running instances, such as licences or IP allocations, sees the extra instance during a replacement. Check the ones that matter to you.

Warmup. Healthy means the instance has passed its first health check and any warmup time has elapsed. Setting a default instance warmup on groups whose instances need time to initialise keeps the new instance from being counted too early.

What it does not cover

The setting changes how Auto Scaling replaces instances in planned maintenance events. It does not stop an instance from disappearing. The instance maintenance policy documentation says Auto Scaling still terminates and launches when an instance terminates unexpectedly, when EC2 reboots, stops or retires an instance for a scheduled event before the replacement is launched, and when the Spot service forcibly terminates an interrupted Spot Instance. That page describes instance maintenance policies, and the account setting documentation does not restate the list, so treat it as the best available description of those cases.

It also does not make a bad replacement safe. A new instance that passes the health check but serves errors still takes traffic. Pair it with the practices in graceful shutdown on Kubernetes if the instances are cluster nodes, and with PodDisruptionBudgets so that node replacement does not drain more pods than the workload can lose. For the wider upgrade picture, see Kubernetes cluster upgrades without drama.

A rollout order

  1. List the groups with no instance maintenance policy. These are the ones the setting changes.
  2. For each, check maximum size against desired capacity, and how any Capacity Reservations are referenced.
  3. Enable the setting in a non-production Region or account and start an instance refresh. Watch healthy capacity and the instance count during the refresh.
  4. Enable it in production, one Region at a time, outside peak hours for the first run.
  5. For groups that need a different trade, such as batch workers that should never exceed their size, set an explicit instance maintenance policy. It takes precedence over the account setting.

If something goes wrong, put-account-setting --value disabled returns the group to the previous defaults.

Summary

The account setting turns launch before terminate into the default for Auto Scaling groups that have no policy of their own. It is cheap to try and easy to revert, and it removes a brief capacity dip that many teams have accepted without noticing. The work is in the edges: groups with no headroom, reservations referenced by ID, and Regions where the setting is not yet available.