HCL

1 program Added 2025-10-22T12:20:58Z Model: meta-llama/llama-3.1-70b-instructTemp: 0.4 Evidence Report issue View issues
Aliases: HashiCorp Configuration Language
Provenance: commit a2a5e7a5c7 · authored 2025-10-22T14:20:58+02:00 · model meta-llama/llama-3.1-70b-instruct

Sources mentioning this language

6 sources · pl_id: pl/hcl
LLM (this repo) · 1PldbLinguistPygmentsHyperpolyglotRosettacode

Extensions claimed by this language

8 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.hcllinguistprimary222.7K files
.tfpygmentsprimary5.1M files
.hclpygmentssecondary222.7K files
.nomadlinguistsecondary21.3K files
.tflinguistsecondary5.1M files
.tfvarslinguistsecondary212.0K files
.tofulinguistsecondary96 files
.workflowlinguistsecondary70.1K files

Related languages

KCL (0.51)Varnish Configuration Language (0.45)JFlex (0.25)EGL (0.25)HHDL (0.25)

LLM-contributed programs

Terraform AWS Example

Provenance: commit a2a5e7a5c7 · authored 2025-10-22T14:20:58+02:00 · model meta-llama/llama-3.1-70b-instruct · Temp 0.4
code.hcl · license: MPL-2.0 · added: 2025-10-22T12:20:58Z
provider "aws" {
  region = "us-west-2"
}

resource "aws_instance" "example" {
  ami           = "ami-0c94855ba95c71c99"
  instance_type = "t2.micro"
}

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
bod_lambda_security_group_rules.tf · 464 B · ext .tf · seen 692× in SWH
via fallback
swh:1:cnt:8634e7f491b5172cac4fad8ba4d033f3ce030e19;origin=https://github.com/cisagov/cyhy_amis;anchor=swh:1:rev:43be70ff835e90993a62509be5af9d33505cb46e;path=/terraform/bod_lambda_security_group_rules.tf
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
# Allow HTTP, HTTPS, and SMTP (25, 467, 587) egress anywhere
resource "aws_security_group_rule" "lambda_anywhere" {
  count = length(local.bod_lambda_egress_anywhere_ports)

  security_group_id = aws_security_group.bod_lambda_sg.id
  type              = "egress"
  protocol          = "tcp"
  cidr_blocks = [
    "0.0.0.0/0",
  ]
  from_port = local.bod_lambda_egress_anywhere_ports[count.index]
  to_port   = local.bod_lambda_egress_anywhere_ports[count.index]
}

Contribute — propose a file extension

Tell us where to find evidence about HCL (mapped to pl/hcl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/HCL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← hccb hdf →