Deploying a Website Canary with CloudFormation

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this live AWS environment, you will use AWS CloudFormation to deploy your own website Canary application. Website canaries are programs commonly used to monitor the status of sites or services to determine uptime, calculate availability and alert when there are potential failures. Because you will deploy the canary with CloudFormation, you will avoid much of the manual setup that would otherwise be required, and you will be able to describe your AWS infrastructure for this application in a JSON template.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Upload a Lambda Function Zip File Deployment Artifact to S3

Upload a deployment zip package to S3 inside the AWS console so that your CloudFormation template can rely on it during the creation process.

  1. Navigate to the S3 portion of the console
    • Create a bucket with a globally unique name (try your name, favorite animal and some random letters)
    • Copy the bucket name down for later
    • Upload the canary.zip file from the GitHub repository here into the S3 bucket
Create a CloudFormation Stack

Create a CloudFormation stack in the AWS console using the designer and the code samples provided.

  1. Navigate to the CloudFormation part of the AWS Console
    • Create a new template using the designer
    • Make sure to select the template section of the editor
    • Paste in the code from the sample cftemplate.json file here
    • Update the CF template with the name of the bucket you created
    • Update the CF template with the name of the website you’d like to check
    • Update the CF template with the phone number you want to get a text notification at
    • Validate the CF template
    • Upload and deploy the CF template
    • Test the Lambda Function

Additional Resources

Make sure you are in us-east-1 when doing this activity.

The code samples for this are here: https://github.com/linuxacademy/aws-cda-2018/tree/master/cloudformation/lab-files

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.

Sign In
Welcome Back!

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

Get Started
Who’s going to be learning?