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
andnoretain.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 thenoretain.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 thenoretain.json
ands3static.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.