Skip to content
Create global AWS VPC infrastructure sandboxes using YAML configuration file
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

AWS VPC Infrastructure Made Easy

The purpose of these scripts is to simplify the creation of VPCs across all AWS regions. The VPCs are intended to be used as sandboxes for testing and learning new AWS services.

Users define the VPCs by writing a YAML configuration file. The script dynamically generates terraform configurations that rely heavily on the terraform-aws-vpc module. Any input described in the module's documentation can be included in the VPC configuration. The region parameter is not an input to the module; however, it is a valid parameter for the VPC configuration for this script to specifiy the AWS region.



  • python 3.6 or newer
  • terraform 0.11

On Ubuntu 18.04 (x64):

sudo apt-get update
sudo apt-get install git build-essential unzip python3-pip
git clone
cd aws-vpc-infrastructure-made-easy
pip3 install -r requirements.txt
# install terraform if not already installed
export VER="0.11.12"
wget${VER}/terraform_${VER} \
-O /tmp/terraform_${VER}
unzip /tmp/ -d /tmp
sudo mv /tmp/terraform /usr/local/bin/terraform
sudo chown root:root /usr/local/bin/terraform
export AWS_ACCESS_KEY_ID="anaccesskey"
export AWS_SECRET_ACCESS_KEY="asecretkey"
cp vpc_config.yml.sample vpc_config.yml

Run with sample data

I've included a sample YAML configuration file

  - name: red
    region: us-east-1
    azs: [ us-east-1a, us-east-1b ]
    public_subnets: [, ]
    private_subnets: [, ]
    enable_s3_endpoint: false
    enable_nat_gateway: false
  - name: black
    region: us-west-1
    azs: [ us-west-1a, us-west-1b ]
    public_subnets: [, ]
    private_subnets: [, ]
    enable_s3_endpoint: true
    enable_nat_gateway: false

You can build the sandbox using the following steps.

make generate
make init
make plan
make apply

To tear down the sandbox, execute make destroy.

You can’t perform that action at this time.