When running terraspace fmt, it goes through all the modules/stacks but only the first level. No recursive check is done by default, which thus excludes all tfvars subfolders, and there is no --recursive option available.
Motivation
terraform fmt already supports this feature. The only requirement here is to support adding --recursive as a flag so it gets passed down to the terraform fmt command, just like most of the other terraspace commands already support.
Summary
When running
terraspace fmt
, it goes through all the modules/stacks but only the first level. No recursive check is done by default, which thus excludes alltfvars
subfolders, and there is no--recursive
option available.Motivation
terraform fmt
already supports this feature. The only requirement here is to support adding--recursive
as a flag so it gets passed down to theterraform fmt
command, just like most of the otherterraspace
commands already support.Guide-level explanation
Reference-level explanation
Drawbacks
Unresolved Questions