Terraform is an Open source tool developed and maintained by HashiCorp. It uses its own Hashicorp Configuration Language- HCL to provision multiple cloud service providers. In this tutorial, I will show you how to use loops in Terraform. We will see several examples of using some loop constructs.
Source: Linux Today – How to Use Loops in Terraform