CloudFormation Nested Stacks
- Nested Stacks allow re-use of CloudFormation code for common use cases
- E.g. standard configuration for a load balancer, web server, application server, etc.
- Instead of copying out the code each time, create a standard template for each common use case, store it in S3, and reference from within your CloudFormation template.
Resources:
Type: AWS::CloudFormation::Stack
Properties:
NotificationARNs:
- String
Parameters:
AWS CloudFormation Stack Parameters
Tags:
- Resource Tag
TemplateURL: https://s3.amazonaws.com/.../template.yml
TimeoutInMinutes: Integer
The only element that is mandatory is the TemplateURL
property.