How can I upgrade my EC2 Windows Server instance to a newer version?

2 minute read
0

I want to upgrade my Amazon Elastic Compute Cloud (Amazon EC2) Windows Server instance to a newer Windows version.

Resolution

For Windows Server 2008 R2, you can choose between a server migration or an automated upgrade.

For Windows Server 2012 R2 or later, you can choose between a server migration, an automated upgrade, or an in-place upgrade.

To minimize downtime, plan your upgrade before you start. It's a best practice to maintain backups of your instances and data. Before you upgrade, create a custom Windows AMI, or create snapshots of your Amazon Elastic Block Store (Amazon EBS) volumes.

Note: For in-place upgrades, make sure that you complete the requirements before you begin.

Server migration for EC2 Windows Server 2008 R2 or later

With a migration, you copy the data and configuration to a new server that already runs your preferred version of Windows. This process can result in fewer upgrade errors or issues but might take longer than an in-place upgrade.

For instructions, see Upgrade and migrate roles and features in Windows Server on the Microsoft website.

In-place upgrade for EC2 Windows Server 2012 R2 or later

Perform an in-place upgrade to keep your current configuration and data. This process can be faster, but software incompatibility might cause errors.

Note: If you don't need to use the installation media after the upgrade, then you can detach and delete the Windows Server installation media EBS volume.

Upgrade issues

If you experience upgrade issues, then see Troubleshoot an operating system upgrade on an EC2 Windows instance.

Automated upgrade for EC2 Windows Server 2008 R2 and SQL Server 2008 R2

Use AWS Systems Manager Automation runbooks to perform an automated upgrade. For Windows Server 2008 R2, 2012 R2, or 2016 to Windows Server 2012 R2, 2016, 2019, or 2022, upgrade your Windows Server. For SQL Server 2008 R2 on Windows Server 2012 to SQL Server 2016, upgrade your SQL Server.

Related information

Upgrade an EC2 Windows instance to a newer version of Windows Server

6 Comments

I have treid to perfrom upgrdae 2016 to 2022 but it got failed on below stpes

Execution detail - Step 8: serverUpgradeInstanceWithOriginalKeyPair

replied a year ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied a year ago

When i try to do an in-place upgrade from 2019 Data Centre version to 2022 Data Centre version, option to keep file, folders. app is greyed out. Checked the both windows language and there is no change in edition. Any specific reason or what to debug or some solution to enable those options during upgrade?

replied a year ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
EXPERT
replied a year ago

With an in-place upgrade, can I delete the volume created to load the new OS after the upgrade is complete, or does that volume need to stay attached? That is - AWS says to create a new volume from a public snapshot with the Windows Server edition desired. You then attach said volume, log into the instance, and use the volume to upgrade the server. After that is done, is it safe to detach and delete the volume or no? Thanks!

replied 9 months ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

profile pictureAWS
MODERATOR
replied 9 months ago