IT lexicon › Programming › HCL (HashiCorp Configuration Language)

HCL (HashiCorp Configuration Language)

Programming På svenska → Updated: 2026-05-23

HashiCorp's declarative configuration language — like JSON but for humans. Powers Terraform, Packer, Nomad, Consul, Vault, Vagrant.

Syntax: block "label" { key = "value" }. Supports expressions (${var.x + 1}), functions, conditionals, loops, interpolation. HCL2 (2017) added types and stricter validation. 1:1 isomorphic with JSON (tools can accept either).

Criticised vs. "pure code" (Pulumi, CDK) but beats both YAML and JSON on readability and comment support. Standard in infra-as-code.

← Back to the lexicon