jdormit-infra/tf-init.sh
2020-12-04 09:23:36 -05:00

11 lines
278 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"