Created
June 14, 2020 21:41
-
-
Save sblack4/2dad48f56b7ffdd04ab9e16738cfdef8 to your computer and use it in GitHub Desktop.
Get a list of all your terraform variables, alphabetized
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/bash | |
# requires: | |
# - https://github.com/hashicorp/terraform-config-inspect | |
# - jq | |
# - sort | |
terraform-config-inspect --json | jq -r '.variables | keys | .[]' | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment