Automation with CloudFormation

AWS CloudFomation (https://aws.amazon.com/cloudformation/), 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 Chapter10_3_cloud_formation.ymlAWSTemplateFormatVersion: '2010-09-09'Description: Create VPC in us-west-1Resources:  myVPC:    Type: AWS::EC2::VPC    Properties:      CidrBlock: '10.1.0.0/16'      EnableDnsSupport: 'false'      EnableDnsHostnames: 'false'      Tags: - Key: Name ...

Get Mastering Python Networking - 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.