I have my existing servers on Amazon Linux, now we are planning to upgrade it to amazon linux2. How do we do that?
Do we have a set of steps to upgrade or do we need to launch a new Ec2 instance using Amazon Linux2 Image and re-install our apps on top of it?
From Amazon Linux 2 FAQs:
Can I perform an in-place upgrade from an existing version of Amazon Linux AMI to Amazon Linux 2?
No, an in-place upgrade from the existing Amazon Linux image to Amazon Linux 2 is not supported. We recommend that you test your application on a fresh installation of Amazon Linux 2 first before migrating.
Related
Currently my workload is running on "Tomcat 8.5 with Java 8 running on 64bit Amazon Linux/3.3.9" and want to upgrade to Amazon Linux 2 and run my workload on "Tomcat 8.5 with Corretto 8 running on 64bit Amazon Linux 2/4.2.5". For testing was trying to clone the existing environment but don't see an option to upgrade the platform. The platform option is greyed out. Is this by design or am i doing something wrong ?
Is this by design or am i doing something wrong ?
Its by design and you have to do it manually. The reason is that EB platforms based on Amazon Linux (AL1) are incomtabile with those based on AL2. This means that there is no automated procedure for the upgrade. You have to follow the AWS docs to do manual upgrade:
Migrating your Elastic Beanstalk Linux application to Amazon Linux 2
When I log in Elastic Beanstalk, I see that my platform is deprecated:
I guess it is because of the 7.2 PHP version that is now unsupported.
But when I click on change I don't see any higher version. In addition I can't find where in ElasticBeanstalk I can change the PHP version of my app.
The support for 64bit Amazon Linux 2018.03 v2.9.17 running PHP 7.2 finished on May 2, 2021. The only current versions of EB for PHP are based on Amazon Linux 2 (AL2).
Since AL1 is largely different then AL1 (what you have now), the only way to upgrade is to perform migration from AL1 to AL2 as explained in:
Migrating your Elastic Beanstalk Linux application to Amazon Linux 2
Is there a way to auto-install AWS Systems Manager on the existing AWS EC2 instances.
I see the SSM agent is pre-install on Amazon Linux, but how about the other OS like Redhat, ubuntu, centos?
how about the other OS like Redhat, ubuntu, centos?
Ubuntu also has pre-installed SSM Agent. From docs:
SM Agent is preinstalled, by default, on the following Amazon Machine Images (AMIs):
Amazon Linux
Amazon Linux 2
Ubuntu Server 16.04
Ubuntu Server 18.04
Amazon ECS-Optimized
For the remaining AMIs, you could install the agent as described in the docs and create a custom AMI. This way you do it only once, and re-use the custom AMIs.
As an alternative, a User Data could be used to automate the installation of the agent whenever an instance is launch.
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,
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.
We've been toying with switching to cloud based desktops, specifically AWS Workspace. Is there support for Ubuntu desktops though? To this point I've only been able to generate Windows environments.
UPDATE: Amazon Workspaces now supports Amazon Linux 2, an offshoot of CentOS.
Update: Workspaces now have a linux option, in case anyone finds this.
AWS Workspaces only supports Windows at the moment.
From the product description:
Amazon WorkSpaces is a managed, secure cloud desktop service. You can use Amazon WorkSpaces to provision either Windows or Linux desktops
Amazon Workspaces now allows the use of Windows 7 and Windows 10, as well as Amazon Linux 2. There are options that are eligible for the Free Tier.
Descriptions of what software you can install are available here.