CodePipeline for Continuous Deployment to Elastic Beanstalk

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will use CodePipeline to deploy to an Elastic Beanstalk environment. This is a quick way to set up a CodePipeline pipeline, and the first thing to do is create an Elastic Beanstalk environment. Once the Elastic Beanstalk environment is set up, the source repository can be configured and then the CodePipeline pipeline is configured. Ultimately, the deployment service will be Elastic Beanstalk, and each deployment will be to the Elastic Beanstalk environment.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create Elastic Beanstalk Environment
  1. Navigate to the Elastic Beanstalk service.
  2. Click Get started.
  3. On the Create a web app page, set the following values:
    • Application name: continuousdeployment
    • Platform: PHP
    • Application code: Sample application
  4. Click Configure more options.
  5. Scroll down to Network, and click Modify.
  6. Under Virtual private cloud (VPC), select the listed VPC (from the dropdown)
  7. In the Instance subnets section, select all three available subnets.
  8. Click Save.
  9. Click Create app.
Create an S3 Bucket
  1. Be sure to download the files listed in the lab instructions for later use in this lab.
  2. Navigate to S3.
  3. Click Create bucket.
  4. In the Bucket name field, type a unique DNS-compliant name.
  5. Click Next.
  6. On the Configure options screen, enable versioning.
  7. Click Next > Next > Create bucket.
  8. Upload the ZIP file that was downloaded earlier in this lab to the new S3 bucket.
  9. Click on the uploaded file name, and copy the key to a text file for use later in this lab.
Create an AWS CodePipeline
  1. Navigate to CodePipeline.
  2. On the Welcome page, click Create pipeline.
    If this is your first time using CodePipeline, click Get Started.
  3. On the Choose pipeline settings page, in Pipeline name, enter the name for your pipeline.
  4. In Service role, choose New service role to allow CodePipeline to create a new service role in IAM.
  5. Click Next.
  6. On the Add source stage page, in Source provider, choose S3, specify its required options, and then click Next.
  7. Click Skip build stage.
  8. On the Add deploy stage page, set AWS Elastic Beanstalk as the Deploy provider. In Application name, enter or choose the name of an existing Elastic Beanstalk application. In Environment name, enter an environment for the application. Click Next.
  9. On the Review page, review your pipeline configuration, and then click Create pipeline to create the pipeline.

Additional Resources

Log in to the live AWS environment using the credentials provided.

Make sure you're in the N. Virginia (us-east-1) region throughout the lab.

Download the zip file used in this lab: https://github.com/natonic/Developer-Tools-Deep-Dive/tree/master/Labs/CodePipelineWithElasticBeanstalk

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!