Created
November 28, 2018 21:59
-
-
Save osterman/13cbc89873a6f7e0905b3153ac8e1d9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ "$1" != "" ]; then | |
name="$1" | |
fi | |
if [ "$name" == "" ]; then | |
name=$(basename $(pwd)) | |
cd ../../ | |
ehco running chamber-apply in $(pwd) 1>&2 | |
fi | |
name=${name?required envvar is missing} | |
export SOPS_KMS_ARN=$(scripts/sops-kms-arn) | |
set -vx | |
sops -d chambers/"${name}"/sops.json | chamber import "${name}" - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment