Setting up a custom VPC with ec2 instances on AWS CloudFormation template accompanying the Medium article. Template creates the following resources in AWS: