Last active
February 9, 2019 18:10
-
-
Save jayers99/b34dc1924d9ad0d028c5733d7a362b83 to your computer and use it in GitHub Desktop.
terraform variable statistics
This file contains hidden or 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
grep -Proh --include \*.tf --exclude-dir=.terraform --exclude-dir=.git '\$\{var\.[\w]+\}' | sort | uniq -c | sort -nr | |
find ~/tf/ -name *.tf -exec grep -Proh '\$\{var.[\w]+\}' {} \; | sort | uniq -c | sort -nr > ~/temp/varlist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment