Skip to main content

How to Host a Website/Web app on AWS Elastic Beanstalk with Node.js

 In this tutorial, we will learn how to deploy a website/web app on AWS Elastic Beanstalk using both Python. AWS Elastic Beanstalk is a fully managed service that makes it easy to deploy, manage, and scale applications. Whether you're building a simple personal website or a complex web application, Elastic Beanstalk simplifies the process of deployment and server management.


We start of by visiting the AWS Elastic beanstalk developer guide, sample sand tutorial page here.












☉ Extract the nodejs.zip file and open the index.html

☉ Replace the html code in the index.html file with your own code and save your changes.












☉ compress the contents.




☉ On the AWS console click services ⇨ compute ⇨   Elastic Beanstalk ⇨  Create Application




☉  Select "Web server environment" for the environment tier.
☉  Give the application a name. For this tutorial its "nodeJStutorial"




☉ The Environment name will be auto-generated. You can add a domain name, but check its availability before moving forward.








☉ Under Platform type select "Managed platform". Under Platform select "Node.js".












☉ For application Code select "Upload own code". Give the application a version number, the select "local file" in order to upload the zip file we created earlier.















☉ Under Presets Select Single instance to avoid charges. This is VERY IMPORTANT!!! After that click next.











☉ On the next page scroll down and click "Skip to review"








☉ On the review page click "Submit"


☉ It may take a few minutes before the application is deployed, but if the application is deployed the status will be "ok"










☉ You can share the url of the application to anyone because it is online













☉ Remember to terminate/delete your applications once you are done. 

Thanks for visiting Net Cloud Insights comment bellow any questions or suggestions. a video tutorial will be out soon on YouTube and on an updated version of this post. 




Comments

Popular posts from this blog

Run Python, Java or any other language in Linux using Gedit.

In the world of programming, Linux has always been a go-to platform for developers due to its flexibility, power, and open-source nature. Linux offers a multitude of options for coding and scripting, allowing programmers to leverage their favorite programming languages seamlessly. While there are numerous text editors available for Linux, one particular editor stands out for its simplicity, versatility, and widespread usage among developers - Gedit. Gedit, the default text editor for the GNOME desktop environment, is lightweight, intuitive, and highly customizable, making it an excellent choice for editing code in Linux. But did you know that Gedit can do much more than just editing? It can also be transformed into a powerful integrated development environment (IDE) capable of running programs written in various programming languages, including Python, Java, C++, and many others. In this blog post, we will explore how to harness the potential of Gedit and leverage it as a tool for exec...

How to Host a Website/Web app on AWS Elastic Beanstalk with Python

In this tutorial we will deploy a website/web app on AWS Elastic Beanstalk using Python. AWS Elastic Beanstalk is a fully managed service that makes it easy to deploy, manage, and scale applications. Whether you're building a simple personal website or a complex web application, Elastic Beanstalk simplifies the process of deployment and server management. We start of by visiting the AWS Elastic beanstalk developer guide, sample sand tutorial page  here . ☉ Download the python.zip file. ☉ Extract the python.zip file and open the application.py file in any text editor ☉ Replace the html code with your html code in the triple quotes of the welcome variable and save the changes. ☉ Compress the contents of the python folder. ☉ On the AWS console click services ⇨ compute ⇨   Elastic Beanstalk ⇨  Create Application ☉  Select "Web server environment" for the environment tier. ☉  Give the application a name. For this tutorial its "pythonTutorial" ☉ The Environm...