Terraform caf rover: Terraform Language Syntax

- Understand Terraform Language Basics 1. Understand Blocks 2. Understand Arguments, Attributes & Meta-Arguments 3. Understand Identifiers 4. Understand Comments


Basant Pandey

6/24/20231 min read

A MacBook with lines of code on its screen on a busy desk
A MacBook with lines of code on its screen on a busy desk

Terraform Language

Terraform Block
Terraform Block

Terraform Basic elements

The HashiCorp Configuration Language (HCL) is the low-level language for the Terraform Language and alternative JSON syntax.

  • Blocks: Blocks are containers for other content and usually represent the configuration of some kind of object, like a resource.

  • Block Type: Blocks have a block type.

  • Block Label: Can have zero or more labels. The block label contains the name of the block.

  • Block Body: The body that contains any number of arguments and nested blocks.

  • Arguments: Assign the value to a name. It appears within blocks.

  • Expression: literally represent a value by referencing and combining other values.




Build your own dreams

Or someone else will hire you to build theirs. Here is how you can take action – starting today.