Migrate to EC2Launch v2 for Windows instances
The EC2Launch migration tool upgrades the installed launch agent (EC2Config and
EC2Launch v1) by uninstalling it and installing EC2Launch v2. Applicable configurations
from previous launch services are automatically migrated to the new service. The
migration tool does not detect any scheduled tasks linked to EC2Launch v1 scripts;
therefore, it does not automatically set up those tasks in EC2Launch v2. To configure
these tasks, edit the agent-config.yml file, or use the EC2Launch v2 settings dialog box. For example, if
an instance has a scheduled task that runs InitializeDisks.ps1
, then after
you run the migration tool, you must specify the volumes you want to initialize in the
EC2Launch v2 settings dialog box. See Step 6 of the procedure to Change settings using the EC2Launch v2 settings
dialog box.
You can download the migration tool or install with an SSM RunCommand document.
You can download the tool from the following locations:
Note
The 32-bit migration tool link will be deprecated. We recommend that you use the 64-bit link to migrate to EC2Launch v2. If you require a 32-bit launch agent, use EC2Config.
Note
You must run the EC2Launch v2 migration tool as an Administrator. EC2Launch v2 is installed as a service after you run the migration tool. It does not run immediately. By default, it runs during instance startup and runs if an instance is stopped and later started, or restarted.
Use the AWSEC2Launch-RunMigration
The migration tool applies the following configurations from EC2Config to EC2Launch v2.
-
If
Ec2DynamicBootVolumeSize
is set tofalse
, removes EC2Launch v2boot
stage -
If
Ec2SetPassword
is set toEnabled
, sets EC2Launch v2 password type torandom
-
If
Ec2SetPassword
is set toDisabled
, sets EC2Launch v2 password type todonothing
-
If
SetDnsSuffixList
is set tofalse
, removes EC2Launch v2setDnsSuffix
task -
If
EC2SetComputerName
is set to true, adds EC2Launch v2setHostName
task toyaml
configuration
The migration tool applies the following configurations from EC2Launch v1 to EC2Launch v2.
-
If
ExtendBootVolumeSize
is set tofalse
, removes EC2Launch v2boot
stage -
If
AdminPasswordType
is set toRandom
, sets EC2Launch v2 password type torandom
-
If
AdminPasswordType
is set toSpecify
, sets EC2Launch v2password type tostatic
and password data to the password specified inAdminPassword
-
If
SetWallpaper
is set tofalse
, removes EC2Launch v2setWallpaper
task -
If
AddDnsSuffixList
is set tofalse
, removes EC2Launch v2setDnsSuffix
task -
If
SetComputerName
is set totrue
, adds EC2Launch v2setHostName
task