I need to rename a terraform resource created with a for_each over a loop. I can just change the terraform and apply, which results in a destroy/create. Not terrible in this case, but I want something better just by changing state. Best of all, I want to script this. Situation My resource needs to go…