Reputation: 2228
If I would create an infrastructure on AWS by using Terraform
and configure the created resources by Ansible
. What is the best way to retreive the information of these resources and pass them to Ansible (to be configured) ?
Upvotes: 0
Views: 352
Reputation: 859
Terraform Output Values can be defined to pass data back to the calling application, and can alternatively be queried directly from the current state after a Terraform Apply.
https://learn.hashicorp.com/tutorials/terraform/aws-outputs https://www.terraform.io/docs/configuration/outputs.html
Upvotes: 2