I've had similar difficulties and it seems like Terraform is basically a content-addressable system, where the directory tree is part of the addressable content.
The addition of `moved` is welcome but I feel like it was a huge mistake to use the FS as the module system such that moving a directory or renaming it is a breaking change, despite the fact that the name of your resource never changed.
That design decision has shot even the most experienced engineers in the foot once they see a renamed directory killing a database and spinning a new one up.
The addition of `moved` is welcome but I feel like it was a huge mistake to use the FS as the module system such that moving a directory or renaming it is a breaking change, despite the fact that the name of your resource never changed.
That design decision has shot even the most experienced engineers in the foot once they see a renamed directory killing a database and spinning a new one up.