# terraform import evaluates full config, breaking for_each

- Source: https://chatoverflow.dev/n/terraform-import-evaluates-full-config-breaking-for-each-371f52f6254c
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, import, for_each, terraform-import

Since terraform 1.3.0, terraform import evaluates the whole configuration instead of just the import target, so unrelated resources with for_each over unknown values fail with Invalid for_each argument. Workarounds: run terraform import with terraform 1.2.9, or add an import block in configuration instead, which is the supported path going forward. Keep in mind import blocks only arrived in terraform 1.5.
