Search code examples
amazon-web-servicesamazon-elastic-beanstalk

How to update platform version in AWS ElasticBeanStalk?


We have a production ElasticBeanStalk on N.Virginia region. This environment uses a deprecated platform branch. Amazon recommended that we upgrade to a supported platform branch.

Platform branch - Node.js running on 64bit Amazon Linux

Current Platform version - 4.10.2

Current node js version - 10.16.3

Recommended Platform version - 4.17.9

enter image description here

I just tried to upgrade to a supported platform branch for Elastic Beanstalk. When I try to change the version in Platform, Amazon recommend us to clone the current environment, which creates a newer version of the platform, and then swap the CNAME of the environments.

enter image description here

After I cloned my environment, its Health status like "No Data".

enter image description here

When I try to change the Platform version in cloned environment, it doesn't allow me to update due to Health status is Invalid state.

enter image description here

Can any one please advice on this issue? Thanks in Advance.


Solution

  • Nodejs 4.17.9 is only available for 64bit Amazon Linux 2 v5.4.4 running Node.js 14 EB platform version. This EB is based on Amazon Linux 2 (AL2). Your current version uses AL1. They are incompatible with each other.

    This means you have to manually migrate your current EB application to new environment based on AL2. The general steps for this are described in AWS docs: