Flaconi.aws-vpc

Ansible Role: AWS VPC

This role is used to create AWS VPCs.

Build Status Version Ansible Galaxy

Requirements

Additional Variables

Here are some extra variables you can use (as host_vars/group_vars or command line arguments):

Variable Description
aws_vpc_profile Name of the Boto profile to use
aws_vpc_default_region The default region to use

Example Definition

Required Parameters Only

aws_vpc_vpcs:
  - name: my-vpc-1
    cidr: 172.28.0.0/16
  - name: my-vpc-2
    cidr: 172.29.0.0/16

All Available Parameters

aws_vpc_vpcs:
  - name: my-vpc-1
    cidr: 172.28.0.0/16
    # Optional
    region: eu-central-1
    tags:
      - key: env
        val: development
      - key: department
        val: infra
  - name: my-vpc-2
    cidr: 172.29.0.0/16
    # Optional
    region: eu-central-1
    tags:
      - key: env
        val: production
      - key: department
        val: devops

Variable Tags

my_key: env
my_val: staging

aws_vpc_vpcs:
  - name: my-vpc-1
    cidr: 172.28.0.0/16
    # Optional
    region: eu-central-1
    tags:
      - key: "{{ my_key }}"
        val: "{{ my_val }}"

Testing

Requirements

Run Tests

# Check the source files for errors
make lint

# Run integration tests with the default Ansible version
make test

# Run integration tests with a custom Ansible version
make test ANSIBLE_VERSION=2.6
Informazioni sul progetto

Creates an arbitrary number of VPC's on AWS

Installa
ansible-galaxy install Flaconi.aws-vpc
Licenza
apache-2.0
Download
78
Proprietario