Skip to content
Captain's Academy0
← Terraform sea chart
Island 2 · HCL basics · Port 2.1

Anatomy of a block

Ask the Captain
Instagram
Every line of Terraform is one of two things.
You'll learn to

read any HCL block: block type, labels, body, arguments and nested blocks

Recap

  1. 1Block = type + labels + body in { }. terraform: 0 labels · provider: 1 · resource: 2
  2. 2Argument = name = value
  3. 3Nested block has no equals sign. tags = { } is an argument holding a map
Check yourself

How many labels does a resource block have?

2.1

Stamp this lesson

Watched it and passed the check? Mark it in your logbook.