Coding in Terraform
HashiCorp, the creator of Terraform, created HashiCorp configuration language (HCL), which is used in writing Terraform code. HCL is a functional programming language with features such as loops, if statements, variables, and logic flow that are normally found in programming languages. Complete in-depth HCL documentation can be found at https://www.terraform.io/language/.
Providers
The reason why Terraform is so widely used is the number of extensions that are available from the company and open source communities; these extensions are called providers. A provider is a piece of software that interacts with the different cloud providers and other resources in the cloud. We will look at Terraform code to understand more about providers. The following code snippets can be found inside the chapter14/simple
directory:
terraform { required_providers { docker = { source = "kreuzwerker/docker" ...