aws_inventory

A dynamic AWS inventory for Ansible which groups nodes using regular expressions.


Licenses
AGPL-3.0/GPL-3.0+
Install
pip install aws_inventory==0.5.8

Documentation

aws_inventory

A dynamic AWS inventory for Ansible - https://pypi.org/project/aws_inventory/

Install examples:

git clone https://github.com/zahna/aws_inventory.git#egg=master
pip install -e /path/to/aws_inventory

Config file options

First, see the examples/ directory for example files that use aws_inventory.

Hostnames in the config file can use tags or metadata.

Metadata examples:

  • EC2 tags such as "Name"
  • InstanceId
  • PublicDnsName
  • PublicIpAddress
  • PrivateIpAddress
  • PrivateDnsName

Using an AWS profile credentials

aws_inventory can use an AWS profile's credentials. If the environment variable AWS_PROFILE is set, aws_inventory will use it.