Flaconi.aws-vpc

Rola Ansible: AWS VPC

Ta rola zajmuje się tworzeniem VPC w AWS.

Status budowy Wersja Ansible Galaxy

Wymagania

Dodatkowe zmienne

Dodatkowe zmienne, które mogą być używane (jako host_vars/group_vars lub przez argumenty wiersza poleceń):

Zmienna Opis
aws_vpc_profile Nazwa profilu Boto do użycia
aws_vpc_default_region Domyślny region do użycia

Przykład definicji

Tylko wymagany parametr

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

Wszystkie dostępne parametry

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

Zmienne dla tagów

my_key: env
my_val: staging

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

Testowanie

Wymagania

Uruchamianie testów

# Sprawdzenie plików źródłowych
make lint

# Uruchomienie testów integracyjnych z domyślną wersją Ansible
make test

# Uruchomienie testów integracyjnych z niestandardową wersją Ansible
make test ANSIBLE_VERSION=2.6
O projekcie

Creates an arbitrary number of VPC's on AWS

Zainstaluj
ansible-galaxy install Flaconi.aws-vpc
Licencja
apache-2.0
Pobrania
78
Właściciel