Last active
March 10, 2022 03:38
-
-
Save michaelact/fea37a3413e7cf8bd920a823a79c241a to your computer and use it in GitHub Desktop.
TFLint | Running for Recursive Directory | Support Terragrunt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
find . -type d | grep -v .terraform | tail -n +2 > tfdir.txt | |
cat tfdir.txt | parallel cp .tflint.hcl {} | |
cat tfdir.txt | parallel 'cd {} && tflint' | |
cat tfdir.txt | parallel 'cd {} && tflint --module' | |
cat tfdir.txt | parallel rm {}/.tflint.hcl | |
rm tfdir.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment