Terraform Refactor Identity Pitfalls

Use when Terraform or OpenTofu resources are renamed, re-keyed, moved, adopted or dropped, or when a module is refactored: count versus for_each identity, for_each keys that must be known at plan time, moved blocks before the first apply, declarative import and removed blocks, targeted destroy, provider and runtime pinning with the lock file, a version floor table for newer features, and what terraform test with mocks does and does not prove.

techmefr Updated

File contents

techmefr/mentis commit c7d9f92db5

Frequently asked questions

npx get-skill add techmefr/terraform-refactor-identity-pitfalls