Terragrunt documentation specifically addresses whether .terraform.lock.hcl
files should be checked into source control repos.
What is the recommendation for .tf
files generated by terragrunt? Should they also be added to source control?
If they are not added, it seems like they would just be regenerated during the next init/plan/apply. But, it also seems like it would be a pain to manage .gitignore
file(s) so that developers don't have to worry about these files that they didn't touch during an edit.
If the recommendation is that they should be added to source control, then developers would have to ensure that they at least run terragrunt init
or terragrunt plan
so that terragrunt creates/updates the files that it is responsible for. That doesn't seem ideal either.
What's the "right" way to handle those files?