diff --git a/devops/scripts/format.sh b/devops/scripts/format.sh index 4852753..1543efa 100644 --- a/devops/scripts/format.sh +++ b/devops/scripts/format.sh @@ -14,8 +14,9 @@ echo "########################################################################## echo -e "$BLUE INFO: $NC About to auto-format hcl files and generate docs for hcl files" TF_ENVS_FOLDER="./terraform/envs" +TF_MODULES_FOLDER="./terraform/modules" DEVOPS_TF_FOLDER="./devops/terraform" -for dir in ${TF_ENVS_FOLDER}/sbx-k8s-deployment ${TF_ENVS_FOLDER}/sbx-k8s-configuration ${DEVOPS_TF_FOLDER} ; do +for dir in ${TF_ENVS_FOLDER}/sbx-k8s-deployment ${TF_ENVS_FOLDER}/sbx-k8s-configuration ${TF_MODULES_FOLDER}/k8s ${DEVOPS_TF_FOLDER} ; do terraform-docs markdown table --output-file README.md --hide providers --output-mode replace "$dir" done