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.

Introduction

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 in 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 Learn

  • 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 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

  • Configure an AWS Elastic Beanstalk app
    1. In a new browser tab, open the AWS Elastic Beanstalk Console.
    2. Click the orange "Create Application" button.
    3. In the textbox under the heading "Application name" type "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. Visually confirm the radio button next to "Sample application" is selected.
    6. Visually confirm that your screen looks like the below screenshot:
    Module 2 CreateApplication

    7. Click 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.

  • Test your web app
    1. To test your sample web app, click on the link under the name of your environment.
    Module 2 - EnvironmentLink

    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:

Module-2

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?

Thank you
Please let us know what you liked.
Close
Sorry to disappoint you
Is something out-of-date, confusing or inaccurate? Please help us improve this tutorial by providing feedback.
Close

Create Build Project