Ansible stuffs - using ec2_remote_facts instead of ec2.py
overview I’ve been thinking about dynamic inventories and Ansible, especially when using AWS. One major difference between static IT infrastructures and dynamic AWS infrastructures is that IP addresses may change, instances may be terminated, and things just flat out change. Your resources are a moving target. Finding those instances/servers/VMs is the first step in managing your inventory.
Ansible has a great tool for this, “ec2.py”. It basically pulls information on instances in AWS at runtime (as -i .