Menu
Auto Scaling
User Guide

Changing the Launch Configuration for an Auto Scaling Group

An Auto Scaling group is associated with one launch configuration at a time, and you can't modify a launch configuration after you've created it. To change the launch configuration for an Auto Scaling group, you can use an existing launch configuration as the basis for a new launch configuration and then update the Auto Scaling group to use the new launch configuration.

After you change the launch configuration for an Auto Scaling group, any new instances are launched using the new configuration options, but existing instances are not affected.

To change the launch configuration for an Auto Scaling group using the console

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Launch Configurations.

  3. Select the launch configuration and choose Actions, Copy launch configuration. This sets up a new launch configuration with the same options as the original, but with "Copy" added to the name.

  4. On the Copy Launch Configuration page, edit the configuration options as needed and choose Create launch configuration.

  5. On the confirmation page, choose View your Auto Scaling groups.

  6. Select the Auto Scaling group and choose Details, Edit.

  7. Select the new launch configuration from Launch Configuration and choose Save.

To change the launch configuration for an Auto Scaling group using the AWS CLI

  1. Describe the current launch configuration using the describe-launch-configurations command.

  2. Create a new launch configuration using the create-launch-configuration command.

  3. Update the launch configuration for the Auto Scaling group using the update-auto-scaling-group command with the --launch-configuration-names parameter.

To change the launch configuration for an Auto Scaling group using the Tools for Windows PowerShell

  1. Describe the current launch configuration using the Get-ASLaunchConfiguration command.

  2. Create a new launch configuration using the New-ASLaunchConfiguration command.

  3. Update the launch configuration for the Auto Scaling group using the Update-ASAutoScalingGroup command with the -LaunchConfigurationName parameter.