nbering / terraform-inventory

An Ansible dynamic inventory script to pair with nbering/terraform-provider-ansible.
MIT License
176 stars 52 forks source link

Terraform 0.12 and Testing #8

Closed nbering closed 5 years ago

nbering commented 5 years ago

Handle Terraform 0.12 TFState format. Keeps backward-compatibility to ease transition. Also needed to drop -input=false flag on terraform state pull because it wasn't recognized by Terraform 0.12-beta2.

Also adds some basic acceptance test infrastructure - simply checks if the script output changed. I didn't feel it was necessary to add the overhead of a unit test framework for a single script file... but I'd accept a PR if someone else feels like writing it.