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 theLabInstanceProfile
role. - Add a rule to the instance security group to permit incoming HTTP traffic from all sources.
- Change the configured EC2 instance to a
- Deploy the CloudFormation Template
- Validate and update your CloudFormation template after making all changes.
- Verify the stack shows a status of
UPDATE_COMPLETE
. - After the stack has finished creating, enable termination protection for your CloudFormation stack.
- Verify That Stack Resources Reflect the Updated Configuration
- Navigate to your EC2 dashboard, and verify that the instance type, security group, and role association have been modified.
- 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.