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