terraform VS hcl

Compare terraform vs hcl and see what are their differences.

terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned. (by hashicorp)

hcl

HCL is the HashiCorp configuration language. (by hashicorp)
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
terraform hcl
564 50
45,478 5,521
0.4% 1.1%
9.9 7.8
15 days ago 9 days ago
Go Go
GNU General Public License v3.0 or later Mozilla Public License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

terraform

Posts with mentions or reviews of terraform. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-06-25.

hcl

Posts with mentions or reviews of hcl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-06-19.
  • What Would a Kubernetes 2.0 Look Like
    17 projects | news.ycombinator.com | 19 Jun 2025
    Be careful about linking to terraform docs for HCL, as it can be very easy to blur terraform's implementation of the behaviors from HCL itself

    https://github.com/hashicorp/hcl/blob/v2.23.0/hclsyntax/spec... I believe is the actual language specification of heredocs

  • CONL: "Markdown" for your config files
    3 projects | news.ycombinator.com | 27 Apr 2025
    Similar to HCL which is way safer and clearer IMHO than all indent based craziness. Its lovely to see default values loaded thanks to some extra spaces. Brackets for the win!

    https://github.com/hashicorp/hcl

  • Show HN: Confetti – Configuration for Humans
    3 projects | news.ycombinator.com | 2 Apr 2025
    This also reminds me of [HCL](https://github.com/hashicorp/hcl?tab=readme-ov-file#informat...)
  • Pulumi vs. Terraform: Choosing the Best Infrastructure as Code Solution
    3 projects | dev.to | 10 Feb 2025
    Programming Model The first notable difference between Pulumi and Terraform is the programming language. Terraform uses a custom language called HashiCorp configuration language (HCL) to define infrastructure. In contrast, Pulumi offers more options, allowing you to choose from a list of popular programming languages.
  • Top Terraform/OpenTofu tools to Use in 2025
    24 projects | dev.to | 4 Feb 2025
    Tenv utilizes go-version for semantic versioning and HCL parsing to extract version constraints from files like required_version in Terraform/OpenTofu or Terragrunt HCL files.
  • It's Time to Switch to OpenTofu
    4 projects | news.ycombinator.com | 22 Jan 2025
    HCL is Hashicorp Configuration Language: https://github.com/hashicorp/hcl.

    It's basically a DSL used by a bunch of Hashicorp products.

  • UV has a killer feature you should know about
    14 projects | news.ycombinator.com | 12 Jan 2025
    hcl is still MPLv2 https://github.com/hashicorp/hcl/blob/v2.23.0/LICENSE and my complaint is that the .go file has one import path but the compiler is going to secretly use a fork, versus updating the import path like a sane person. The only way anyone would know to check for why the complied code behaves differently is to know that trickery was possible

    And that's not even getting into this horseshit: https://github.com/opentofu/hcl/blob/v2.20.1/go.mod#L1 which apparently allows one to declare a repos _import_ path to be different from the url used to fetch it

    I have a similar complaint about how in the world anyone would know how "gopkg.in/yaml.v3" secretly resolved to

  • Docker Bake: Storing your Docker build config
    3 projects | dev.to | 5 Nov 2024
    A Bake file can be written in HCL, YAML, or JSON. Docker recommends choosing HCL (HashiCorp Configuration Language) because it supports a more feature-complete Bake spec than the others. A valid Bake file should be called docker-bake followed by your chosen file extension.
  • Faster, Easier Deployments: How We Simplified Our Infrastructure with Nomad in 15 Hours (Goodbye, Kubernetes!)
    6 projects | dev.to | 11 Aug 2024
    In Kubernetes, we define deployments via YAML files. Whereas Nomad leverages HCL (HashiCorp Configuration Language).
  • Terragrunt Tutorial – Getting Started & Examples
    2 projects | dev.to | 6 Jun 2024
    Note that the Terragrunt configuration file uses the same HCL syntax as Terraform itself in terragrunt.hcl. Terragrunt also supports JSON-serialized HCL in a terragrunt.hcl.json file: where terragrunt.hcl is mentioned, you can always use terragrunt.hcl.json instead.

What are some alternatives?

When comparing terraform and hcl you can also consider the following projects:

boto3 - AWS SDK for Python

nerdctl - contaiNERD CTL - Docker-compatible CLI for containerd, with support for Compose, Rootless, eStargz, OCIcrypt, IPFS, ...

Docker Compose - Define and run multi-container applications with Docker

nomad-driver-containerd - Nomad task driver for launching containers using containerd.

sceptre - Build better AWS infrastructure

atlas - Manage your database schema as code

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured