When wiring terraform outputs to inputs between modules, sometimes the data structure is not exactly what you need. We'll show how to transform data structures in different ways. This can help you to reuse modules from the Terraform registry without having to change its source code at all.
- HCL: Useful if you are able to change the source code of the terraform code of the second stack.
- Ruby: Useful if you are unable to change the source code of any of the terraform code.
Links
- Terraspace Docs: Tfvars Complex Types
- GitHub: boltops-learn/terraspace-tfvars-complex-types
Terraspace Fundamentals
2h 30m
Explore lesson as part of a learning path
Get full access to these great resources
All for less than the price of coffee a day