The id in a Terraform state file is often not the one you import by
5 min read
I wrote tf-import-blocks, a Node command that reads a Terraform state file and writes an import block for every AWS resource in it, using the id each type actually imports by rather than the one sitting in the state.
- Tools