jdormit-infra/tf-init.sh

11 lines
211 B
Bash
Raw Normal View History

#!/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