vpc-role is an Ansible Role that automates the (de)provisioning of AWS Virtual Private Clouds and other resources necessary for the efficient functioning of a VPC.
In essence, this role manages the creation/deletion of a VPC, subnets, internet gateway and route tables. Thus giving you the ability to easily standardise your cloud infrastructure across several accounts in your AWS Organisation.
To run this role you will need an AWS account. Also, boto3 must be installed on your system.
This role uses a number of variables in order to determine the flow of execution of the tasks contained within it.
In the defaults
directory, there are a number of variables:
- access_key: Your AWS access key.
- secret key: Your aws secret key.
- region: The specified region for the VPC to reside in.
- az1 & az2: Availability Zones in which the subnets will reside.
The main.yml
file in the vars
directory also contains a number of variables that determine the behaviour of the role.
There are no dependencies for this role.
- name: A Playbook To Automate The Provisioning Of AWS VPCs And Related Resources.
hosts: localhost
roles:
- vpc-role