I’m working on a project that is currently managed as about a bazillion folders, each with their own purpose: Our Datawarehouse is in one folder, production databases in another, ecs in a third, etc. We have to
terraform init each one separately. Terragrunt would be nice, but is not in use.
Most of our configuration was written in 0.13.4 through 0.13.7, but we’re working on an upgrade. This means that every folder has to be upgraded to 0.14.x, tested, validated, upgraded to 1.1, tested, validated, and pushed to Version Control. This is a lot of work, but it’s expected.
A side effect of this is that every folder is getting its own
.terraform.lock.hcl file, and they’re pretty much all the same.
Is it possible, from command-line or in config files, to tell TF: “Always put the lockfile in this specific directory, and always look in this directory for a lockfile”?
If it’s possible, is it a good idea?
For reference, by the end of the upgrade we will have about 200 lockfiles, and 95%+ will be exactly the same.