Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EC2 : upgrade from AMI 1 to AMI 2

Is-there an easy way to upgrade from Amazon Linux AMI to Amazon Linux 2 AMI, or do I have to create a new instance and do again all my server setup ?

Thanks for your feedback,

like image 531
Logboo Avatar asked Jan 09 '19 16:01

Logboo


People also ask

How do I upgrade my AMI?

You can't update the AMI of an instance without replacing it with a new instance. Typically you simply run the operating system updates - yum update / apt update & upgrade / windows update.

Can AMI be changed?

AWS Marketplace customers can now modify their AMI and Container upfront contract pricing based subscriptions.

How do I upgrade to AMI Linux 2?

To migrate to Amazon Linux 2, launch an instance or create a virtual machine using the current image. Install your application on Amazon Linux 2, plus any packages required by your application. Test your application, and make any changes required for it to run on Amazon Linux 2.


1 Answers

There is no easy way. You have to create a new Linux 2 instance.

From: Amazon Linux

If you are currently using the Amazon Linux AMI, we recommend that you migrate to Amazon Linux 2. To migrate to Amazon Linux 2, launch an instance or create a virtual machine using the current image. Install your application on Amazon Linux 2, plus any packages required by your application. Test your application, and make any changes required for it to run on Amazon Linux 2.

like image 117
helloV Avatar answered Sep 22 '22 06:09

helloV