Hi,
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:
/whatever/iam/roles/some_role_x/terraform.tfvars
/whatever/iam/roles/some_role_y/terraform.tfvars
/whatever/iam/roles/some_role_z/terraform.tfvars
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:
/whatever/iam/roles/some_role_x/role/terraform.tfvars
/whatever/iam/roles/some_role_x/role_policy/role_policy_a/terraform.tfvars
etc
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?
Thanks!