Automation with CloudFormation

AWS CloudFomation (, is one way in which we can use a text file to describe and launch the resource that we need. We can use CloudFormation to provision another VPC in the us-west-1 region: 

VPC for US-West-1

The CloudFormation template can be in YAML or JSON; we will use YAML for our first template for provisioning:

$ cat Chapter9_3_cloud_formation.ymlAWSTemplateFormatVersion: '2010-09-09'Description: Create VPC in us-west-1Resources:  myVPC:    Type: AWS::EC2::VPC    Properties:      CidrBlock: ''      EnableDnsSupport: 'false'      EnableDnsHostnames: 'false'      Tags:        - Key: Name

Get Python Network Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.