Created
March 14, 2022 21:22
-
-
Save omhmichaels/59e0c7a900ea4e2de9dc7577d1a0c8f1 to your computer and use it in GitHub Desktop.
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
tf_var_key=$1 | |
tf_var_description=${2:- ""} | |
tf_var_type=${3:- ""} | |
tf_var_default=${4:- ""} | |
printf "\nvariable \"$tf_var_key\" {\n\tdescription = \"$tf_var_description\"\n\ttype = \"$tf_var_type\"\n\tdefault = \"$tf_var_default\"\n}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment