jdormit-infra/tf-init.sh
2020-12-03 13:36:33 -05:00

11 lines
211 B
Bash
Executable File

#!/usr/bin/env bash
BACKEND_FILE="$(dirname $0)/backend-config.tf"
if [ -f "$BACKEND_FILE" ]; then
terraform init -backend-config="$BACKEND_FILE"
else
echo "Could not find $BACKEND_FILE"
exit 1
fi