2020-12-03 18:35:17 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-12-04 14:23:36 +00:00
|
|
|
set -e
|
2020-12-03 18:35:17 +00:00
|
|
|
|
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"
|