Getting Started with AWS

Create Continuous Delivery Pipeline

Set up a Git repo, deploy a sample web app, and create a continuous delivery pipeline

Module 2: Deploy Web App

In this module, you will create and deploy a web application using AWS Elastic Beanstalk

Overview

In this module, you will use the AWS Elastic Beanstalk console to create and deploy a web application. AWS Elastic Beanstalk is a compute service that makes it easy to deploy and manage applications on AWS without having to worry about the infrastructure that runs them. You will use the Create web app wizard to create an application and launch an environment with the AWS resources needed to run your application. In subsequent modules, you will be using this environment and your continuous delivery pipeline to deploy the Hello World! web app created in Module 1.

What you will accomplish

In this module, you will:
  • Configure and create an AWS Elastic Beanstalk environment
  • Deploy a sample web app to AWS Elastic Beanstalk
  • Test the sample web app 

Key concepts

AWS Elastic Beanstalk—A service that makes it easy to deploy your application on AWS. You simply upload your code and Elastic Beanstalk deploys, manages, and scales your application.

Environment—Collection of AWS resources provisioned by Elastic Beanstalk that are used to run your application.

EC2 instance—Virtual server in the cloud. Elastic Beanstalk will provision one or more Amazon EC2 instances when creating an environment.

Web server—Software that uses the HTTP protocol to serve content over the Internet. It is used to store, process, and deliver web pages.

Platform—Combination of operating system, programming language runtime, web server, application server, and Elastic Beanstalk components. Your application runs using the components provided by a platform.

 Time to complete

10 minutes

 Services used

Implementation

    1. In a new browser tab, open the AWS Elastic Beanstalk console.
    2. Choose the orange Create Application button.
    3. In the textbox under the heading Application name, enter DevOpsGettingStarted.
    4. Select Node.js from the Platform dropdown menu. This selection should automatically fill in the Platform branch and Platform version menus further down the screen.
    5. Confirm that the radio button next to Sample application is selected.
    6. Visually confirm that your screen looks like the following screenshot:

    7. Choose the orange Create application button at the bottom of the page.

    While waiting for deployment, you should see:

    • A small black window with white text. This screen will display status messages for our environment.
    • After a few minutes have passed, you will see a large green checkmark on your screen.

    Once you see the green checkmark, you have successfully created an AWS Elastic Beanstalk application and deployed it to an environment.

    1. To test your sample web app, select the link under the name of your environment.

    2. Once the test has completed, a new browser tab should open with a webpage congratulating you!

Application architecture

Now that we are done with this module, our architecture will look like this:

We have created an AWS Elastic Beanstalk environment and sample application. We will be using this environment and our continuous delivery pipeline to deploy the Hello World! web app we created in the previous module.

Was this module helpful?

Create Build Project