liveBook · Manning

HashiCorp Configuration Language

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

HashiCorp Configuration Language is a declarative configuration language for describing infrastructure and services.

HashiCorp Configuration Language (HCL) is a domain-specific language for declaring the desired state of infrastructure and services. Terraform uses HCL configuration files to define resources rather than prescribing step-by-step procedures. section 25.3 section 25.2.2

HCL participates in Terraform’s three-stage workflow:

  • Write configuration files that describe the desired infrastructure state. section 25.2.2
  • Plan the changes so the proposed infrastructure modifications can be verified before execution. section 25.2.2
  • Apply the plan so Terraform can provision or manage resources and reconcile them with the Terraform state file. section 25.2.2

Terraform Core processes HCL, compares the declared end state with recorded infrastructure state, and communicates through providers’ APIs. Supported targets include public clouds, on-premises platforms, and Kubernetes. section 25.2.2

Figure 25.6 Provisioning resources with Terraform. Configuration files are processed byTerraform Core to interact with various providers (i.e., public cloud providers) and manage infrastructure resources while maintaining state information in the state file.
A diagram of a software process Description automatically generated

The provisioning flow connects HCL configuration files with Terraform Core, providers, managed resources, and state information. section 25.2.2

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains HCL’s declarative role and workflow placement but stops short of syntax or language internals.
Examples
Uses Terraform configuration files for resources on AWS, Microsoft Azure, Google Cloud, VMware vSphere, OpenStack, and Kubernetes.
What you can do after
Apply it via Terraform to declare, preview, and provision desired infrastructure resources.
How it connects
Connects HCL with Terraform, Terraform Core, providers, infrastructure as code, and other declarative DSLs such as Puppet DSL.

Also explained in

Compare how 3 books explain HashiCorp Configuration Language →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.