By using AWS re:Post, you agree to the Terms of Use

How to resolve "deprecated platform branch" for EB CLI

0

I have a web site up and running, but want to update it, and have found the Node.js version has now been deprecated (currently 14, should be 16).

I am trying to do this from the command line tool. I have created a new environment called "env-node-16", set it to the active one, then deployed. But I still get warnings that it is using the deprecated version of Node.js (or at least I assume it is referring to Node.js).

Below is the transcript where I set it to use my new environment, test that that is the actie one, then check I am using the latest version of EB. But when I then deploy, it says I am using a deprecated platform branch. So I do upgrade, and it tells me it is the most recent version, and also check Node is version 16.

What is deprecated? And how do I resolve it?

(.ebcli-virtual-env) S:\IT\f2web>eb use env-node-16

(.ebcli-virtual-env) S:\IT\f2web>eb list
F2web-Mar22
* env-node-16
node-express-env

(.ebcli-virtual-env) S:\IT\f2web>eb platform show
Current default platform: Node.js
New environments will be running:  64bit Amazon Linux 2018.03 v4.17.15 running Node.js

Platform info for environment "env-node-16":
Current: 64bit Amazon Linux 2018.03 v4.17.15 running Node.js
Latest:  64bit Amazon Linux 2018.03 v4.17.15 running Node.js

(.ebcli-virtual-env) S:\IT\f2web>eb deploy
Alert: Your environment is using a deprecated platform branch. It might not be supported in the future.

Creating application version archive "app-220308_105356903519".
Uploading: [##################################################] 100% Done...
2022-03-08 10:56:06    INFO    Environment update is starting.
2022-03-08 10:56:11    INFO    Deploying new version to instance(s).
2022-03-08 10:56:53    INFO    New application version was deployed to running EC2 instances.
2022-03-08 10:56:53    INFO    Environment update completed successfully.


(.ebcli-virtual-env) S:\IT\f2web>eb upgrade
Environment already on most recent platform version.

(.ebcli-virtual-env) S:\IT\f2web>node --version
v16.14.0

(.ebcli-virtual-env) S:\IT\f2web>
  • To add a little more, I have created an environment in the console, with the platform "Node.js 16 running on 64bit Amazon Linux 2/5.5.0". They is what I want.

    The new environment added in the OP had not appeared in the console when I was posting, but is there now. It has the platform "Node.js running on 64bit Amazon Linux".

    A further issue is that the web site does not work in the new environment. If I click on the URL (https://env-node-16.[...].elasticbeanstalk.com/), it just times out. It does report that it is healthy in the console.

asked 7 months ago20 views