- Lab
- A Cloud Guru
Deploying a Website Canary with CloudFormation
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.
Path Info
Table of Contents
-
Challenge
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.
- 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
-
Challenge
Create a CloudFormation Stack
Create a CloudFormation stack in the AWS console using the designer and the code samples provided.
- 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
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.