Score:1

How do I migrate our existing Beanstalk application to Amazon Linux 2?

do flag

Our three Beanstalks are currently running on the "Tomcat 8.5 with Java 8 running on 64bit Amazon Linux" platform, either on the canned "ami-0e469f970b0c3b65c" AMI, or (for one of them) on a customized version of that AMI with Java compilation capability added.

Creating a new Beanstalk with the platform "Tomcat 8.5 with Corretto [x] running on 64bit Amazon Linux 2" seems straightforward enough, but what do I do about the existing Beanstalks? Do I start from scratch, with new Beanstalks? Or is there a way to convert the existing ones?

Score:0
ng flag

I believe you have to create a new environment, and when it's working you can terminate the old one.

The docs don't say much, except

If your Elastic Beanstalk application is based on an Amazon Linux AMI platform branch, use this page to learn how to migrate your application's environments to Amazon Linux 2. The two platform generations aren't guaranteed to be backward compatible with your existing application. Furthermore, even if your application code successfully deploys to the new platform version, it might behave or perform differently due to operating system and run time differences. Although Amazon Linux AMI and Amazon Linux 2 share the same Linux kernel, they differ in their initialization system, libc versions, the compiler tool chain, and various packages. We've also updated platform specific versions of runtime, build tools, and other dependencies. Therefore we recommend that you take your time, test your application thoroughly in a development environment, and make any necessary adjustments.

When you're ready to go to production, Elastic Beanstalk requires a blue/green deployment to perform the upgrade. For details about platform update strategies, see Updating your Elastic Beanstalk environment's platform version.

Blue/green deployment basically means that you'll switch your URL from the old environment to the new one once it's working and then you can terminate the old one.

We haven't done the migration ourselves yet, but that's how I understand it.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.