Deploy a Web App on AWS Elastic Beanstalk



Follow step-by-step instructions to build and deploy your first web application using AWS Elastic Beanstalk


In this guide, you will learn how to deploy a non-containerized application in the cloud. You will create a simple NodeJS web application, and then you will use a service called AWS Elastic Beanstalk  to deploy the application to the AWS Cloud. 

Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications and services developed with Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker on familiar servers such as Apache, Nginx, Passenger, and IIS. You can simply upload your code and Elastic Beanstalk automatically handles the deployment, from capacity provisioning, load balancing, auto-scaling to application health monitoring. At the same time, you retain full control over the AWS resources powering your application and can access the underlying resources at any time.

What You Will Learn

In this guide, you will learn how to:

  • Deploy a non-containerized application to the cloud
  • Package a NodeJS app to be deployed using Elastic Beanstalk
  • Create all the infrastructure needed for Elastic Beanstalk using CDK
  • Update a non-containerized deployment


Before Starting this guide, you will need:

  • An AWS account: if you don't already have one follow the Setup Your Environment getting started guide for a quick overview.
  • CDK Installed: Visit our Setup AWS CDK getting started guide to learn more.

 AWS Experience


 Time to Complete

30 - 35 minutes

 Cost to Complete

Free Tier eligible


  • AWS Account with administrator-level access**
  • Recommended browser: The latest version of Chrome or Firefox

[**]Accounts created within the past 24 hours might not yet have access to the services required for this tutorial.


This tutorial is divided into the following short modules. You must complete each module before moving to the next one.

  1. Develop a web application using NodeJS (10 mins): In this module you will create a simple WebApplication with NodeJs Backend and run it locally.
  2. Create a CDK application (15 mins): In this module you will create a CDK application that will create all the necessary infrastructure for deploying your web app to the cloud.
  3. Deploying the application to the cloud (10 mins): In this module you will learn how to deploy your application to the cloud, and what to do when you want to modify it and re-deploy it.
  4. Clean up: In this last part of the guide you learn how to clean after you are done.

Was this page helpful?

Create Web App