Commit 16a90893 authored by Sutton's avatar Sutton
Browse files

Merge branch 'aws-integration' of...

Merge branch 'aws-integration' of community.opengroup.org:osdu/platform/system/schema-service into aws-integration-only
parents 7d625763 803428e4
Pipeline #28857 failed with stages
in 54 minutes and 11 seconds
......@@ -19,7 +19,12 @@ import jwt;
class AwsToken(object):
def get_aws_id_token(self):
client = boto3.client('cognito-idp', region_name=os.environ["AWS_REGION"])
if os.getenv("AWS_COGNITO_REGION") is not None:
region = os.environ["AWS_COGNITO_REGION"]
else:
region = os.environ["AWS_REGION"]
client = boto3.client('cognito-idp', region_name=region)
userAuth = client.initiate_auth(
ClientId= os.environ['AWS_COGNITO_CLIENT_ID'],
......
......@@ -16,9 +16,12 @@ pip3 install -r $AWS_DEPLOYMENTS_SUBDIR/requirements.txt
echo $AWS_BASE_URL
export AWS_SCHEMA_SERVICE_URL=$AWS_BASE_URL/api/schema-service/v1/schema
BEARER_TOKEN=`python3 $AWS_DEPLOYMENTS_SUBDIR/Token.py`
echo $BEARER_TOKEN
if [ -z "$BEARER_TOKEN" ];
then BEARER_TOKEN=`python3 $AWS_DEPLOYMENTS_SUBDIR/Token.py`;
export BEARER_TOKEN=$BEARER_TOKEN
fi
echo Bearer Token: $BEARER_TOKEN
export APP_KEY=""
export DATA_PARTITION=common
python3 $DEPLOYMENTS_BASE_DIR/scripts/DeploySharedSchemas.py -l load_sequence.1.0.0.json -u $AWS_SCHEMA_SERVICE_URL
......@@ -2,6 +2,9 @@ aws_bootstrap:
stage: bootstrap
image: python:3.8
needs: ["aws-update-ecs"]
extends:
- .aws
- .aws_variables
script:
- pip install -r $AWS_DEPLOYMENTS_SUBDIR/requirements.txt
- chmod +x $AWS_DEPLOYMENTS_SUBDIR/bootstrap.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment