Terraform HCL for in Loop Basics

Terraform HCL for in Loop Basics

In this video, we’ll cover the Terraform for in loop construct. Though it performs looping, its primary purpose is really for manipulating data structures. You can do a few things to data structures with it:

  1. Transform: Change the data structure.
  2. Filter: Select only desired items.
  3. Group: Group elements together in a new List by a key.