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

Your first resource

Ask the Captain
Instagram
One block, and Terraform builds a real thing.
You'll learn to

write a resource block and name its type, local name and address (local_file.note)

Recap

  1. 1resource "local_file" "note": type = what and which provider, name = your label
  2. 2Address = type.name (local_file.note), used in plan, state and references
  3. 3Renaming the local name = destroy + create. Real renames: moved (lesson 9.3)
Check yourself

In resource "local_file" "note", what is the address?

2.2

Stamp this lesson

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