jdormit-infra/bin/tf-init.sh

12 lines
293 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-12-04 14:23:36 +00:00
set -e
2020-12-04 14:23:36 +00:00
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" \
$@