Provision AWS VPC written in Terraform using Ansible
One NAT gateway per availability zone
- project : Name of the project
- region : AWS region to use
- vpc_name : Name to give the VPC
- vpc_cidr_block : Primary CIDR of VPC
- azs : A list of availability zones in the region
- tags : A map of tags to add to all resources
-
Create State Store
Run:
ansible-playbook ansible/create_state_store.yaml
-
Create VPC
Run:
ansible-playbook ansible/create_vpc.yaml
Run this playbook to destroy all resources.
ansible-playbook ansible/create_vpc.yaml --tags=never