bootstrap.sh 744 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#Required Env Variables

#AWS_BASE_URL
#AWS_DEPLOYMENTS_SUBDIR
#AWS_REGION
#AWS_COGNITO_CLIENT_ID
#AWS_COGNITO_AUTH_FLOW
#AWS_COGNITO_AUTH_PARAMS_USER
#AWS_COGNITO_AUTH_PARAMS_PASSWORD

11
12
13
14
if [ -z "$DEPLOYMENTS_BASE_DIR" ];
then export DEPLOYMENTS_BASE_DIR=deployments;
fi

15
16
pip3 install -r $AWS_DEPLOYMENTS_SUBDIR/requirements.txt

Rucha Deshpande's avatar
Rucha Deshpande committed
17
18
echo $AWS_BASE_URL
export AWS_SCHEMA_SERVICE_URL=$AWS_BASE_URL/api/schema-service/v1/schema
19
20
21

if [ -z "$BEARER_TOKEN" ];
then BEARER_TOKEN=`python3 $AWS_DEPLOYMENTS_SUBDIR/Token.py`;
Rucha Deshpande's avatar
Rucha Deshpande committed
22
export BEARER_TOKEN=$BEARER_TOKEN
23
24
fi
echo Bearer Token: $BEARER_TOKEN
Rucha Deshpande's avatar
Rucha Deshpande committed
25
26
export APP_KEY=""
export DATA_PARTITION=common
27
python3 $DEPLOYMENTS_BASE_DIR/scripts/DeploySharedSchemas.py -l load_sequence.1.0.0.json -u $AWS_SCHEMA_SERVICE_URL