concept

HCL blocks and arguments

Native Terraform syntax groups settings into blocks with a type, optional labels and a body. Arguments use name = expression. Allowed labels, arguments and nested blocks depend on the Terraform or provider schema. Literal objects are expressions, not nested configuration blocks.

Formal Syntax & Structure

terraform syntaxterraform
HCL blocks and arguments

Working Example

Example Snippetterraform
resource "terraform_data" "lesson" {  input = "training"}
Terraform Reference
HCL blocks and arguments — Terraform Syntax & | ByteMind