Getting Started with CloudFormation

1 hour
  • 4 Learning Objectives

About this Hands-on Lab

CloudFormation is a powerful automation service within AWS. It can be used to create simple or complex sets of infrastructure any number of times. This hands-on lab provides a gentle introduction to CloudFormation, using it to create and update a number of S3 buckets. By the end of this hands-on lab, you will be comfortable using CloudFormation and can begin experimenting with your own templates.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a CloudFormation Stack

Create a CloudFormation stack named cfnlab from the provided template.

Update the CloudFormation Stack

Update the CloudFormation stack cfnlab using updatestack1.json to observe how resources are added and removed.

Add CloudFormation Stacks

Create additional CloudFormation stacks with the provided templates named cfnlab2 and cfnlab3 to observe how resources are added.

Delete CloudFormation Stacks

Delete the CloudFormation stacks created, and observe the resources are deleted.

Additional Resources

Log in to the live AWS environment using the credentials provided, and make sure you are in the us-east-1 (N. Virginia) region.

The CloudFormation templates and other hands-on lab files can found here and cloned from git hub, for this lab you will be working from the /labs/getting started with cfn folder, which has your files required for this lab that you will be required to upload from your computer. OR you can download from the direct raw links below. To save the file simply click on the provided link, then once the file opens in your browser, right click, and select save as to save the json or yaml file to your computer.

Here is the raw file links for you to download from: createstack.json templatestructure.json templatestructure.yaml updatestack1.json updatestack2.json

A list of AWS resources and what happens when updates occur can be found here.

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?