We’ve been happily using Terragrunt for awhile now. We’re using S3 as a backing store w/ Dynamo for locking, as recommend and everything’s great.
I have a desire to re-organize existing resources that are currently organized like:
And what I’d like to do is “push the tfvars file down 1 directory” so that I can have sister directories to manage other assets related to the roles (e.g. role_policies). So my desired end state would look something like this:
My question is - if I create a new “./role” subdirectory and “mv terraform.tfvars role/” and then “terragrunt init” everything seems to work.
Except out in S3, the original “some_role_x/terraform.tfvars” file is still there. I’m hesitant to just delete that because IIRC that causes some checksum problems with the Dynamo locking table?
Is there any advice or best practices about how to move existing/imported assets around in a directory reorg?