Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change platform on Elastic Beanstalk from PHP to Node.js

I'm trying to change the platform on an existing Elastic Beanstalk instance from PHP 7 to Node.js. However, via the AWS Dashboard, I can only change/upgrade the version of PHP.

Is it currently possible to make this change through the dashboard or command line?

like image 580
mralanlee Avatar asked Jun 14 '17 02:06

mralanlee


People also ask

Does Elastic Beanstalk support node JS?

Elastic Beanstalk provides platforms for programming languages (Go, Java, Node. js, PHP, Python, Ruby), application servers (Tomcat, Passenger, Puma), and Docker containers.

How do I specify node version in Elastic Beanstalk?

The scripts keyword is now used instead of the legacy NodeCommand option in the aws:elasticbeanstalk:container:nodejs namespace. Use the engines keyword in the package. json file to specify the Node. js version that you want your application to use.


1 Answers

I think you can use this solution:

aws elasticbeanstalk list-available-solution-stacks

aws elasticbeanstalk update-environment --solution-stack-name "64bit Amazon Linux 2017.09 v4.4.4 running Node.js" --environment-name "example-env" --region "eu-west-1"
like image 89
Matthieu Avatar answered Sep 21 '22 21:09

Matthieu