Lab Aws
Lab Aws
lab title
Course title
BackSpace Academy
AWS Certified Associate
BackSpace Academy AWS Certified Associate
Table of Contents
Contents
Please note that not all AWS services are supported in all regions. Please use
the US-East-1 (North Virginia) region for this lab.
These lab notes are to support the hands on instructional videos of the AWS Deployment Services section of the
AWS Certified Associate Course.
Please note that AWS services change on a weekly basis and it is extremely important
you check the version number on this document to ensure you have the lastest version
with any updates or corrections.
In this section, we will use the Elastic Beanstalk Service to create a highly available and
fault tolerant architecture for deploying our application.
* Please note these notes have been created using the new Elastic Beanstalk console/user interface. You may
need to opt-in to use the new user interface.
The simplest and quickest way to get our architecture deployed is using the sample NodeJS application.
Make sure you are in US-East (N. Virginia) region. From the AWS console select “Elastic Beanstalk” from the
Compute services.
Click “Create”
Click “Select”
Elastic Beanstalk will start creating your environment and displaying log messages
When the environment has launched you can view the sample application by clicking on the URL
In this section, we will use the CodePipeline Service to create a Continuous Integration
and Continuous Delivery (CI/CD) pipeline our application. We will also create a GitHub
repository to store our code and provide updates to be pushed our AWS environment.
If you don’t already have a GitHub account go to github.com and sign up (its free).
Go to github.com and select “New repository” from the “Create” menu on the top right.
Download the sample NodeJS application from the Elastic Beanstalk documentation page:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/samples/nodejs-v1.zip
Unzip the archive and drag and drop the files onto the repository code page.
Click on index.html
Scroll down to line 38 and change the colour from #73A53E to Magenta
Make sure you are in US-East (N. Virginia) region. From the AWS console select “CodePipeline” from the
Developer Tools services.
*Note this step may force a re-login to the console which may reset your screen. If this occurs go back and start
the pipeline creation process again including “Connect to GitHub”.
You will now be returned to the Code Pipeline console with the new role entered.
Go to “Application versions” and click refresh to see the new version from your GitHub repository.
You will see the updated version with the Magenta background deployed.
If you go back to the Code Pipeline console you will see the change taking effect.
Go back to Elastic Beanstalk and click on the environment URL to see the updated version with the orange
background
Clean Up
Click “Delete”
In this section, we will integrate the CodeBuild Service with CodePipeline to create build
and test processes in our Continuous Integration and Continuous Delivery (CI/CD)
pipeline.
The code for this lab is located in a GitHub repository. We can save time and simply fork a copy of this to your
GitHub account.
You will now have a forked repository in your account that can be used to deploy the sample code.
The repository contains a modified copy of the AWS NodeJS sample application.
package.json – modified to include an “npm async” package dependency (so that we have something to build!)
Connect to GitHub and select the forked repository and master branch.
Clean Up
Click “Delete”