- Newest
- Most votes
- Most comments
There is SSM automation you can try that has below workflow in your test environment to see if it fits your use case. "The upgrade operation is a multi-step process that can take 2 hours to complete. We recommend performing an operating system upgrade on instances with at least 2 vCPUs and 4GB of RAM. The automation creates an AMI from the instance and then launches a temporary instance from the newly created AMI in the SubnetId that you specify. The security groups associated with your original instance are applied to the temporary instance. The automation then performs an in-place upgrade to the TargetWindowsVersion on the temporary instance. To upgrade your Windows Server 2008 R2 instance to Windows Server 2016, 2019, or 2022, an in-place upgrade is performed twice because directly upgrading Windows Server 2008 R2 to Windows Server 2016, 2019, or 2022 is not supported. The automation also updates or installs the AWS drivers required by the temporary instance. After the upgrade, the automation creates a new AMI from the temporary instance and then terminates the temporary instance."
--> For your concern related to changing IP address: Once you verify the new AMI by going through your verification checklist, If it passes your tests and you're ready to use this new AMI, you can try creating volumes from the new AMI, stop current active instance and swap existing volumes with these new volumes.
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/automated-upgrades.html https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awsec2-CloneInstanceAndUpgradeWindows.html
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
Thanks for the reply; but that still means creating a new EC2 instance from the "new" AMI which will have a different IP and instance ID wont it?