jdormit-infra/bin/tf-init.sh
2022-05-12 15:00:32 -04:00

12 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
set -e
SPACES_ACCESS_ID=$(pass jdormit-infra-spaces-access-id)
SPACES_SECRET_KEY=$(pass jdormit-infra-spaces-secret-key)
terraform init \
-backend-config="access_key=$SPACES_ACCESS_ID" \
-backend-config="secret_key=$SPACES_SECRET_KEY" \
$@