Explaining HCL, HashiCorp's Declarative Configuration Language

This DEV Community article introduces HCL, the declarative configuration language developed by HashiCorp, and examines it as a language apart from any specific tool. It distinguishes declarative approaches, which specify a desired end state, from imperative ones, which specify step-by-step execution, using examples like SQL and HTML. The author notes that HCL is used in products such as Terraform, Packer, Nomad, and Vault, with file extensions varying by tool, for example .tf for Terraform and .pkr.hcl for Packer. Because HCL is a configuration language rather than a general-purpose one, it has no runtime of its own and is interpreted by the host tool. The piece promises future hands-on examples, including Terraform on Azure.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in