Search⌘ K
AI Features

Introduction to Terraform HCL

Explore the fundamentals of HashiCorp Configuration Language (HCL) used in Terraform. Understand how arguments and blocks form the syntax, the role of identifiers, and comment styles to write clear Infrastructure as Code configurations across cloud environments.

We'll cover the following...

HashiCorp Configuration Language (HCL) is the low-level syntax of Terraform language. The two key syntax constructs that form Terraform language syntax are arguments and blocks.

Arguments

A value is assigned to a particular name through an argument.

Go (1.6.2)
image_id = "abc123"

The identifier before the equals sign is the argument name, and the expression after the equals sign is the argument’s value.

Blocks

A block is a ...