Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

CodePipeline for Continuous Deployment to Elastic Beanstalk

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.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 45m
Published
Clock icon Nov 20, 2019

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create Elastic Beanstalk Environment

    1. Navigate to Elastic Beanstalk.
    2. Click Create application.
    3. On the Configure environment page, set the following values:
      • Application name: continuousdeployment
      • Platform: PHP
      • Application code: Sample application
    4. Click Next.
    5. Select Use an existing service role and choose the existing service role that contains RootRole.
    6. For EC2 instance profile, select the existing profile that contains InstanceLoggingProfile.
    7. Click Next.
    8. Under Virtual Private Cloud (VPC), select the listed VPC (from the dropdown).
    9. Under Public IP address, check Activated.
    10. In the Instance subnets section, select all three available subnets.
    11. Click Next.
    12. Under EC2 Security groups, check the non-default security group name.
    13. Click Next.
    14. Click Next.
    15. Review your configurations and click Submit. It will take a few minutes to complete creation.
  2. Challenge

    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.
  3. Challenge

    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.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans