Terraform allows us to deploy infrastructure as code using a high level configuration language known as HCL. Terraform is a good tool for building infrastructure for a wide range cloud providers, but it can be difficult to implement standard control flow statements- if statements and loops- that are present in standard programming languages.
by Leo Ling