mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2025-12-22 20:41:56 +00:00
Reorganized env and attempted to add SAML
This commit is contained in:
10
env.sh
10
env.sh
@@ -7,9 +7,13 @@ else
|
||||
ENV_FILE="invenio_prod.env"
|
||||
fi
|
||||
|
||||
aws secretsmanager get-secret-value --secret-id Invenio | \
|
||||
jq -r '.SecretString | fromjson | to_entries | .[] | .key + "=\"" + .value + "\""' > secrets.env
|
||||
{
|
||||
echo "# Secrets fetched from AWS Secrets Manager"
|
||||
aws secretsmanager get-secret-value --secret-id Invenio | \
|
||||
jq -r '.SecretString | fromjson | to_entries | .[] | .key + "=\"" + .value + "\""'
|
||||
echo ""
|
||||
} > secrets.env
|
||||
|
||||
cat ./env/invenio.env "./env/$ENV_FILE" secrets.env > .env
|
||||
cat secrets.env ./env/invenio.env "./env/$ENV_FILE" > .env
|
||||
|
||||
echo "Environment set up using $ENV_FILE"
|
||||
|
||||
Reference in New Issue
Block a user