boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

`terraspace fmt` doesn't do recursive checks and does not support the `--recursive` flag like `terraform fmt` does #322

Closed alexpilon666 closed 3 months ago

alexpilon666 commented 1 year ago

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 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.

Guide-level explanation

Reference-level explanation

Drawbacks

Unresolved Questions

alexpilon666 commented 3 months ago

Issue has been solved with the following PR: https://github.com/boltops-tools/terraspace/pull/332