Services Covered

  • ElasticBeanstalk Elastic Beanstalk
  • CodePipeline Code Pipeline
  • S3 S3

Lab description

This lab walks you through the Deployment of sample Node.js application in Elastic Beanstalk. Then the code gets updated, uploaded into S3 bucket and used as a source for CodePipeline pipeline. The pipeline will deploy the updated code into a Elastic Beanstalk Environment and update the running app.

Learning Objectives

  • Create Elastic Beanstalk Environment
  • Create a CodePipeline pipeline
  • Test the application deployment changes

Lab date



  • AWS account

Lab steps

  1. Create Elastic Beanstalk Environment. Choose Node.js as Platform and use sample application. This will create a sample node.js app.
  2. Navigate to S3 and enable versioning for a new bucket. Then upload the updated version of the application. In my case it’s just changed background color of this app. You’ll find the update files here. Then copy the object key.
  3. Create a CodePipeline pipeline. As a source provider choose Amazon S3. Then the bucket with the updated app and it’s key. Skip build stage. As a deploy provider choose Elastic Beanstalk and choose the earlier created environment.Immediately after creation, the pipeline will start running, Once the source is verified, the first section Source will be shown as Succeeded.
  4. Test the application deployment changes. Go back to Elastic Beanstalk. The application should’ve been updated

    Navigate to the provided link and you should see the changes:

Lab files