Working with CloudFormation Nested Stacks

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will create a nested stack from the templates provided. We will use the two templates to create a nested stack that will implement a child template, which will then create an S3 bucket with a policy of no retain. This child template can be reused repeatedly whenever an S3 bucket of this type is needed.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an S3 Bucket and Upload CloudFormation Templates

Create an S3 bucket in the AWS Console and upload the s3static.json and noretain.json files from the GitHub repo to the newly created bucket.

Create a Nested Stack with a Single Child Stack

Create a CloudFormation stack with the root.json template from the GitHub repo and modify the template to reference the noretain.json file that is located in your S3 bucket.

Create a Nested Stack with a Multiple Child Stacks

Create a CloudFormation stack with the multinest.json template from the GitHub repo and modify the template to reference the noretain.json and s3static.json files that are located in your S3 bucket.

Upload the index.html file and verify the page loads

After your multinest stack has been deployed, locate an S3 bucket that was created in the stack and upload the index.html file from the GitHub repo to the bucket. Navigate to the URL of your S3 bucket and observe that the page loads.

Additional Resources

Please log in with the credentials provided, and make sure you are in the us-east-1 (N. Virginia) region.

Download the necessary files from the lab's GitHub repository.

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?