Skip to content

Glossary: Terraform

count

Also written: count.index

An older way to make several copies of a resource, numbered from 0 with addresses like `local_file.note[0]`. Removing a middle item shifts the rest, so it suits only identical copies or `count = var.enabled ? 1 : 0` switches.

Where the book teaches it

Related terms

for_eachCondition