Reputation: 106
My current platform version is: Node.js running on 64bit Amazon Linux/2.0.1 Which support following NodeJS versions: 0.12.6, 0.10.39, 0.10.38, 0.10.31, 0.8.28
I am looking a way to upgrade the NodeJS version: 4.x.x which seems to be available in platform version: Node.js running on 64bit Amazon Linux/3.1.0
but when I am upgrading it. it's says
How can I select the allowed version as it's not available.
Any Help,
Thanks,
P.S 1. Already tried via save / load configurations. Unable to find any option there. 2. Don't want to do setup it from the scratch for now.
Upvotes: 1
Views: 767
Reputation: 11
This has happened a few times before when Amazon releases new Environments and they do not include versions in common between the environments. The solution is to set value for nodejs version to an empty string which means to use the latest version. It could break your app, but you can make a clone with latest platform and switch to desired version of nodejs later. So run this command to do that:
aws elasticbeanstalk update-environment --region "your region" --application-name "your app" --environment-name "your env" --option-settings "OptionName=NodeVersion,Namespace=aws:elasticbeanstalk:container:nodejs,Value=''"
Upvotes: 0
Reputation: 2526
First, ensure that you have tested the changes adequately before deploying to production. After that, you can:
eb init --region REGION_NAME
and pick the application and environment you are working oneb config
. This opens your environment's configuration in an editor. Change the value of the PlatformArn to the one you noted above in step 1.aws:elasticbeanstalk:container:nodejs
. Change the NodeVersion
to 6.9.1 or one that the error message above suggests.After the configuration is complete:
eb status
to verify that your environment is using the upgraded Solution Stack.Upvotes: 2
Reputation: 2991
You can clone the existing environment to a new one, using a different platform version. In the Actions menu, select "Clone with the latest platform". That opens a new page where you can select from available OS/nodejs versions.
Once you are satisfied with the new environment, you can swap URLs with the old one in order to replace it. After that, you can remove the older env.
Upvotes: 0