Skip to content

Glossary: Terraform

each.key / each.value

Also written: each.key, each.value

The current item inside `for_each`. For a map, `each.key` is its key and `each.value` its value; for a set, both are the same.

Where the book teaches it

Related terms

for_each