Skip to content

Instantly share code, notes, and snippets.

@omhmichaels
Created March 14, 2022 21:22
Show Gist options
  • Save omhmichaels/59e0c7a900ea4e2de9dc7577d1a0c8f1 to your computer and use it in GitHub Desktop.
Save omhmichaels/59e0c7a900ea4e2de9dc7577d1a0c8f1 to your computer and use it in GitHub Desktop.
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