Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
apply terraform-docs command on tf module sub-dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Apr 24, 2024
1 parent 09425b4 commit 93b6a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devops/scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 93b6a90

Please sign in to comment.