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
AWS Console Guides
3h 41m
Terraform Fundamentals 101
1h 36m
Terraform AWS
2h 4m
Terraform HCL Fundamentals
1h 53m
Terraspace Fundamentals
2h 30m
Terraspace Cloud
2h 33m
Terraspace AWS Cloud
1h 43m
AWS EKS Kubernetes
4h 13m
Get full access to these great resources
All for less than the price of coffee a day