Giter Club home page Giter Club logo

ansible-role-aws-vpc-igw's Introduction

Ansible role: AWS VPC IGW

This role is able to create any number of Internet Gateways, each attached to a VPC in AWS.

Build Status Version Ansible Galaxy

Requirements

  • Ansible 2.5

Additional variables

Additional variables that can be used (either as host_vars/group_vars or via command line args):

Variable Description
aws_vpc_igw_profile Boto profile name to be used
aws_vpc_igw_default_region Default region to use
aws_vpc_igw_vpc_filter_additional Additional key val filter to add to vpc_filter and vpc_name by default.

Example definition

IGW's can be created per VPC either by supplying a VPC name or a VPC filter.

Required parameter only

aws_vpc_igws:
  # Create IGW for a VPC by VPC name
  - name: my-igw-1
    vpc_name: devops-test-vpc
  # Create IGW for a VPC by VPC filter
  - name: my-igw-2
    vpc_filter:
      - key: "tag:Name"
        val: "devops-test-vpc"
      - key: "tag:env"
        val: playground
      - key: "tag:department"
        val: devops

All available parameter

# Ensure VPC filter (name or filter) includes that the VPC is created already
# (not pending nor deleted)
aws_vpc_igw_vpc_filter_additional:
  - key: state
    val: available

aws_vpc_igws:
  # Create IGW for a VPC by VPC name
  - name: my-igw-1
    vpc_name: devops-test-vpc
    region: eu-central-1
    tags:
      - key: env
        val: playground
      - key: department
        val: devops
  # Create IGW for a VPC by VPC filter
  - name: my-igw-2
    vpc_filter:
      - key: "tag:Name"
        val: "devops-test-vpc"
      - key: "tag:env"
        val: playground
      - key: "tag:department"
        val: devops
    region: eu-central-1
    tags:
      - key: env
        val: playground
      - key: department
        val: devops

Testing

Requirements

Run tests

# Lint the source files
make lint

# Run integration tests with default Ansible version
make test

# Run integration tests with custom Ansible version
make test ANSIBLE_VERSION=2.4

ansible-role-aws-vpc-igw's People

Contributors

cytopia avatar danvaida avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.