gcp stack output includes firewall

This commit is contained in:
Gal Szkolnik 2022-08-05 10:06:12 -04:00
parent 1e2ad899eb
commit aa5e3a5640
2 changed files with 8 additions and 1 deletions

View file

@ -90,10 +90,14 @@ if [[ -x $TERRAFORM_BIN ]]; then
echo "Could not find environment variables matching: $(echo "^TF_${PATTERN}")"
} || {
unset $TOCLEAR
echo "Cleared the following vars: $TOCLEAR"
echo "Cleared the following vars: $(echo "$TOCLEAR" | xargs echo)"
}
}
function get-tf-env-plan() {
set | grep '^TF\(_\(VAR_[a-z]\)\|\([A-Z_]TARGET=\)\)' | grep '\b='
}
function clear-tf-env-vars() {
clear-tf-env 'VAR_[a-z]'
}