X-Git-Url: http://git.squeep.com/?p=awsible;a=blobdiff_plain;f=infrastructure%2Fgenerate-backend-configs.sh;fp=infrastructure%2Fgenerate-backend-configs.sh;h=f44ef5d6fc33381aaaa97178fc59a985c8a855de;hp=0000000000000000000000000000000000000000;hb=8576668075ca95e44481d9c9ed29d7e6af024bdc;hpb=933c48ff1e134168de3aaa2d20e4d43c13d04928 diff --git a/infrastructure/generate-backend-configs.sh b/infrastructure/generate-backend-configs.sh new file mode 100755 index 0000000..f44ef5d --- /dev/null +++ b/infrastructure/generate-backend-configs.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# this is a rough hack at the moment, it needs to be better + +set -e +set -o pipefail + +tf_infra=$(pushd ../terraform-infrastructure >/dev/null && terraform output -json && popd >/dev/null) +function infra_value(){ + jq -er ".${1}.value"<<<"${tf_infra}" +} + +cat<