Skip to content

Instantly share code, notes, and snippets.

@javatarz
Last active December 13, 2019 08:40
Part of the functions.sh file
#!/bin/bash
function fetch_variables() {
workspace_name=$1
module_name=$2
echo $(cat ../config/$workspace_name/$module_name.tfvars | sed '/^$/D' | sed 's/.*/TF_VAR_& /' | tr -d '\n')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment