You can change the configuration file and then apply it to change the AMI and the node version at the same time.
Install the eb-cli if you haven't already
Save the existing configuration
Run
eb config save
To save the configuration
Edit the saved file and change the version number of the AMI and the node version number. (Make sure to check here that you specify the exact version number of node that is available on that AMI)
Upload the configuration to S3
eb config put <name of config file>
Load the Configuration onto your server(s)
- Go to your elastic beanstalk console
- Choose your app
- Click on saved configurations
- Have a look at the saved configuration, it should say the correct AMI name
- Select the configuration and click load to load it onto your existing EB environment
I found that we had to rebuild our environment after this, and do some troubleshooting on npm install
.
Now that's done, enable managed updates so you don't have to do it again :-)