Skip to main content

HashiCorp Language (HCL)

HCL is HashiCorp's configuration language used in multiple products, but most notably in terraform.

The HashiCorp Configuration language was designed to be both human readable and machine friendly. It used by most HashiCorp tools such as terraform. The nice thing about HCL is also fully JSON compatible, which means that JSON can be used anywhere HCL is expected. By supporting JSON backwards compatibility, HCL remains interoperable with other systems.

Here's an example of HCL:

variable "ami" {
description = "the AMI to use"
}