AWS CloudFormation: Working with Nested Stacks and Signal Script

AWS CloudFormation: Working with Nested Stacks and Signal Script
AWS CloudFormation: Working with Nested Stacks and Signal Script

CLOUD LABS

AWS CloudFormation: Working with Nested Stacks and Signal Script

Learn to use nested stacks to simplify provisioning complex infrastructures, along with cfn-signal helper script for better configuring the provisioned resources.

10 Tasks

intermediate

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

A solid understanding of CloudFormation fundamentals
Hands-on experience with cfn-signal script for configuring provisioned resources
Hands-on experience with complex infrastructure creation using nested stacks

Technologies
AWS logoAWS
CloudFormation logoCloudFormation
S3 logoS3
EC2 logoEC2
Skills Covered
Using AWS Cloud Services
Cloud Lab Overview

The Amazon CloudFormation service allows users to manage their infrastructure as a group. You can define AWS resources using an infrastructure as code formatted template and don't have to individually create each resource. Similarly, you can make changes in multiple resources by simply changing the template, and also delete the created infrastructure together.

In this CloudLab, you'll start by learning about what CloudFormation templates and stacks are. You'll then use them to provision infrastructure using CloudFormation. The provisioned infrastructure will include an EC2 instance. Once you've set up that infrastructure, you'll integrate the cfn-signal helper script in the CloudFormation template to ensure that the provisioned EC2 instance is fully configured before the stack creation is marked as complete. You'll then learn how to handle complex infrastructures using nested stacks. Moreover, you'll add another EC2 instance in your infrastructure and use nested stacks instead of a simple stack to do so. Finally, you’ll clean up all resources.

By the time you finish this Cloud Lab, you’ll be able to create and maintain infrastructures using CloudFormation templates. You’ll also be able to use cfn-signal helper script to ensure that your EC2 instances are fully configured before the associated stack is marked as completed. You'll also be able to use nested stacks to simplify complex infrastructure by dividing them into multiple stacks.

The following is the high-level architecture diagram of the infrastructure that you’ll create in this Cloud Lab:

Cloud Lab Tasks
1.Introduction
Getting Started
2.Provision Infrastructure Using CloudFormation Stacks
CloudFormation Template
Provision Infrastructure
3.Configure Resources with cfn-signal Helper Script
Add the cfn-signal Helper Script
Use the Updated Template
4.Provision Infrastructure using Nested Stacks
Nested Stacks
Save the Child Stack Template in an S3 Bucket
Prepare the Parent Template and Modify the Stack
5.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image