Problem: I would like to provision servers to AWS with Terraform, but an Ansible Infrastructure Provider is not available. I want to avoid performing manual work (brr) and automate all the things. If I borrow the inventory from Terraform, then I can use it in Ansible directly! Solution: Ansible is working towards having inventories in YAML. Terraform has the function yamlencode. For the example below, I use my own EC2 module.