-
-
Save edgarsandi/cf1b0ba3046d1122c106154c53b924cd to your computer and use it in GitHub Desktop.
Useful Terraform and Terrgagrunt aliases
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
# Terraform | |
alias trf='terraform' | |
## Terragrunt | |
alias trg='terragrunt' | |
alias trgfmt='terragrunt hclfmt' | |
alias trglint='find . -type f -not -path "*/\.*" | grep ".hcl" | terragrunt hclfmt' | |
alias trgcleancache='find . -type d -name ".terragrunt-cache" -prune -exec rm -rf {} \;' | |
function trginitall() { | |
echo "trragrunt init-all"; | |
find "$PWD" -not -path '*/.terragrunt-cache/*' -type f -name terragrunt.hcl -printf 'cd "%h" && terragrunt init --terragrunt-non-interactive -input=false\n' | sh -ex | |
} | |
alias trginitall=trginitall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment