How to do it...

Just a heads up: this will be one of the larger templates that we'll create in this book. Let's get started:

  1. Go ahead and create a new CloudFormation template for our VPC. Use the filename 07-01-VPC.yaml.
The entire template can be downloaded from this book's GitHub repository, which can be found at https://github.com/PacktPublishing/AWS-SysOps-Cookbook-Second-Edition.
  1. Start with the first two parameters, which correspond to the AZ we discussed previously. We don't provide any default values for these parameters in order to maintain region portability:
Parameters:  AvailabilityZone1:     Description: Availability zone 1 name (e.g. us-east-1a)     Type: AWS::EC2::AvailabilityZone::Name   AvailabilityZone2:  Description: Availability ...

Get AWS SysOps Cookbook - Second Edition 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.