Skip to content
Captain's Academy0
← Terraform sea chart
Island 6 · Dynamic configuration

Interview: count or for_each?

Interview · 8 of 8Ask the Shipwright

Watch

What to remember

What to remember
  1. 1count for identical copies or a 0/1 switch, for_each for anything with a name
  2. 2Moving production from count to for_each: moved blocks, no rebuild
  3. 3dynamic blocks when the blocks come from data, literal blocks otherwise

Go deeper

Ask the Shipwright

Stuck on something in this lesson? Ask, up to 10 questions a day.

Stamp and sail

6.I

Stamp this lesson

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