Terraspace Tfvars Complex Types Transforming Data to Needed Structure Before Terraform Apply

Terraspace Tfvars Complex Types Transforming Data to Needed Structure Before Terraform Apply

January 9, 2022

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.

  1. HCL: Useful if you are able to change the source code of the terraform code of the second stack.
  2. Ruby: Useful if you are unable to change the source code of any of the terraform code.

Links

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

44 courses
286 lessons
46+ hours

Get started with BoltOps Learn now and get access to easy and powerful lessons

BoltOps Tools