forked from HumanCellAtlas/data-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment
84 lines (79 loc) · 3.62 KB
/
environment
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# HCA DSS environment variables
#
# Source this file in your bash shell using "source environment".
#
# The environment variables set in this file are appropriate for the
# HCA DSS development environment. Individual environment variable
# values are overridden when deployed, based on the deployment stage.
# That logic resides in {chalice,daemons}/build_deploy_config.sh.
# TODO: (akislyuk) document configuration ingestion order
# Resolve the location of this file and set DSS_HOME to the root
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
export DSS_HOME="$(cd -P "$(dirname "$SOURCE")" && pwd)"
EXPORT_ENV_VARS_TO_LAMBDA_ARRAY=(
ADMIN_USER_EMAILS
DSS_DEPLOYMENT_STAGE
DSS_S3_BUCKET
DSS_GS_BUCKET
API_DOMAIN_NAME
DSS_SUBSCRIPTION_AUTHORIZED_DOMAINS
DSS_NOTIFICATION_SENDER
DSS_S3_CHECKOUT_BUCKET
DSS_GS_CHECKOUT_BUCKET
SWAGGER_URL
)
set -a
EXPORT_ENV_VARS_TO_LAMBDA=${EXPORT_ENV_VARS_TO_LAMBDA_ARRAY[*]}
DSS_DEPLOYMENT_STAGE=dev
AWS_DEFAULT_OUTPUT=json
AWS_DEFAULT_REGION=us-east-1
GCP_DEFAULT_REGION=us-central1
DSS_S3_BUCKET=org-humancellatlas-dss-dev
DSS_S3_BUCKET_TEST=org-humancellatlas-dss-test
DSS_S3_BUCKET_TEST_FIXTURES=org-humancellatlas-dss-test-fixtures
DSS_S3_BUCKET_INTEGRATION=org-humancellatlas-dss-integration
DSS_S3_BUCKET_STAGING=org-humancellatlas-dss-staging
DSS_S3_BUCKET_PROD=org-humancellatlas-dss-prod
DSS_S3_CHECKOUT_BUCKET=org-humancellatlas-dss-checkout-dev
DSS_S3_CHECKOUT_BUCKET_TEST=org-humancellatlas-dss-checkout-test
DSS_S3_CHECKOUT_BUCKET_INTEGRATION=org-humancellatlas-dss-checkout-integration
DSS_S3_CHECKOUT_BUCKET_STAGING=org-humancellatlas-dss-checkout-staging
DSS_S3_CHECKOUT_BUCKET_PROD=org-humancellatlas-dss-checkout-prod
DSS_GS_BUCKET=org-humancellatlas-dss-dev
DSS_GS_BUCKET_TEST=org-humancellatlas-dss-test
DSS_GS_BUCKET_TEST_FIXTURES=org-humancellatlas-dss-test-fixtures
DSS_GS_BUCKET_INTEGRATION=org-humancellatlas-dss-integration
DSS_GS_BUCKET_STAGING=org-humancellatlas-dss-staging
DSS_GS_BUCKET_PROD=org-humancellatlas-dss-prod
DSS_GS_CHECKOUT_BUCKET=org-humancellatlas-dss-checkout-dev
DSS_GS_CHECKOUT_BUCKET_TEST=org-humancellatlas-dss-checkout-test
DSS_GS_CHECKOUT_BUCKET_STAGING=org-humancellatlas-dss-checkout-staging
DSS_GS_CHECKOUT_BUCKET_PROD=org-humancellatlas-dss-checkout-prod
DSS_NOTIFICATION_SENDER="DSS Notifier <dss.humancellatlas@gmail.com>"
GOOGLE_APPLICATION_CREDENTIALS="${DSS_HOME}/gcp-credentials.json"
GOOGLE_APPLICATION_SECRETS="${DSS_HOME}/application_secrets.json"
ADMIN_USER_EMAILS=`jq ".client_email" ${GOOGLE_APPLICATION_CREDENTIALS} | sed 's/"//g'`
API_DOMAIN_NAME=dss.dev.data.humancellatlas.org
TOKENINFO_URL=https://${API_DOMAIN_NAME}/internal/tokeninfo
NOTIFY_URL=https://${API_DOMAIN_NAME}/internal/notify
SWAGGER_URL=https://${API_DOMAIN_NAME}/v1/swagger.json
DSS_SUBSCRIPTION_AUTHORIZED_DOMAINS_ARRAY=(
chanzuckerberg.com
ucsc.edu
broadinstitute.org
ebi.ac.uk
{human-cell-atlas-travis-test,broad-dsde-mint-{dev,test,staging}}.iam.gserviceaccount.com
)
DSS_SUBSCRIPTION_AUTHORIZED_DOMAINS=${DSS_SUBSCRIPTION_AUTHORIZED_DOMAINS_ARRAY[*]}
DSS_SUBSCRIPTION_AUTHORIZED_DOMAINS_TEST="human-cell-atlas-travis-test.iam.gserviceaccount.com"
DSS_ES_DOMAIN="dss-index-$DSS_DEPLOYMENT_STAGE"
PYTHONWARNINGS=ignore:ResourceWarning,ignore::UserWarning:zipfile:
DSS_PARAMETER_STORE="/dss/parameters"
DSS_EVENT_RELAY_AWS_USERNAME="dss-event-relay"
DSS_EVENT_RELAY_AWS_ACCESS_KEY_ID_PARAMETER_NAME="event_relay_aws_access_key_id"
DSS_EVENT_RELAY_AWS_SECRET_ACCESS_KEY_PARAMETER_NAME="event_relay_aws_secret_access_key"
set +a
if [[ -f "${DSS_HOME}/environment.local" ]]; then
source "${DSS_HOME}/environment.local"
fi