[AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk

In this lesson, you will take a sample Node.js and Express web application to Amazon Web Services by leveraging the managed service, Elastic Beanstalk. This lesson will cover packaging the application, configuring a new Elastic Beanstalk application, and deploying the packaged application to an environment within your application.

 

1. Open Elastic Beanstalk in AWS and Create a new Applicatoin. It will setup the env for us in a while.

2. Enter you application name and description.

3. Create a new "Web server"

4. Select Node.js

[AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk_第1张图片We will run our node app on Single instance (single server).

 

5. Upload your own file: (app.js and package.json, if you have more js files also include it and zip those).

6. Give env name:

[AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk_第2张图片

[AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk_第3张图片

7. [AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk_第4张图片

It is important to select a key pair to enable you can access the instant thought ssh.

 

8. [AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk_第5张图片

9. [AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk_第6张图片

10. Lunch it.

11. Open the link and test it in browser.

 

你可能感兴趣的:([AWS] Deploying a Node.js Application to AWS with Elastic Beanstalk)