-
The documentation on the Terraform templatefile function is available at https://www.terraform.io/docs/configuration/functions/templatefile.html.
-
The documentation on the local_file resource of the local provider is available at https://registry.terraform.io/providers/hashicorp/local/latest/docs/resources/file.
-
A list of books on Ansible from Packt is available at https://subscription.packtpub.com/search?query=ansible.
-
Here is a list of web articles that deal with the same subject of Ansible inventories generated by Terraform by proposing different solutions:
- https://hooks.technology/2020/02/using-terraform-and-ansible-together/
- https://www.linkbynet.com/produce-an-ansible-inventory-with-terraform
- https://gist.github.com/hectorcanto/71f732dc02541e265888e924047d47ed
- https://stackoverflow.com/questions/45489534/best-way-currently-to-create-an-ansible-inventory-from-terraform