thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Foundational

HashiCorp Configuration Language (HCL)

The declarative configuration language used by Terraform, Packer, Nomad, and other HashiCorp tools.

Definition

HCL uses blocks (resource, variable, output, module, provider), arguments, and expressions with interpolation, functions, and conditionals. Terraform also accepts a JSON variant.

Example

resource "aws_s3_bucket" "logs" { bucket = "acme-logs" }

Exam tip

Know the block types and that resource addresses are type.name (aws_s3_bucket.logs).

Related terms