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. - Update
cfnlab
again, replacing the current template with createstack.json to observe how resources are changed. - In a text editor, open the updatestack2.json template file and modify the characters
123
incatsareawesome123
. - Save the file.
- Update
cfnlab
again, replacing the current template with the modifiedupdatestack2.json
template.
- Update the CloudFormation stack
- Delete CloudFormation Stack
Delete the CloudFormation stack you created, and observe how the resources are deleted.