How it works...

Templates define all the resources that need to be created, so when you create a stack, CloudFormation makes the underlying service calls to AWS to provision and configure your resources. CloudFormation resource creation does not depend on how you mention them in your template until you specify to create the resources one after another. You can use the DependsOn attribute to specify the creation of your resources.

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.