Skip to content

Instantly share code, notes, and snippets.

View medwig's full-sized avatar
✌️
Data contractor, ex-Faire, ex-Facebook

Jonathan Medwig medwig

✌️
Data contractor, ex-Faire, ex-Facebook
  • Independent Contractor
  • Kitchener, Canada
View GitHub Profile
@medwig
medwig / terraform_echo_workspace.sh
Created December 11, 2019 15:44
Terraform echo workspace before running apply or output command
# Run tf with echo tf-workspace
tf_with_tf_workspace() {
if [[ "$@" == "apply" ]] || [[ "$@" == "output" ]];
then
\terraform workspace list;
fi
\terraform "$@";
}
alias tf="terraform"