Configure a CloudFormation Template

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you will be provided with a CloudFormation template that requires a few configuration changes to various resources within the existing CloudFormation stack to include EC2 instances, security groups, and IAM instance profiles.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Modify the Provided CloudFormation Template

A CloudFormation stack has already been created in your account but requires additional changes to adhere to policy.

Perform the following updates on the existing stack:

  • Change the configured EC2 instance to a t3.nano instance type.
  • Modify your EC2 instance IamInstanceProfile to use the LabInstanceProfile role.
  • Add a rule to the instance security group to permit incoming HTTP traffic from all sources.
Deploy the CloudFormation Template
  1. Validate and update your CloudFormation template after making all changes.
  2. Verify the stack shows a status of UPDATE_COMPLETE.
  3. After the stack has finished creating, enable termination protection for your CloudFormation stack.
Verify That Stack Resources Reflect the Updated Configuration
  1. Navigate to your EC2 dashboard, and verify that the instance type, security group, and role association have been modified.
  2. After ensuring the stack has completed the update process and termination protection is enabled, click Complete Lab to submit your activity and receive your grade.

Additional Resources

Log in to the AWS Management Console using the credentials provided. Make sure you're in the us-east-1 (N. Virginia) Region throughout the lab.

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?