Microservices
Updated On 24 March 2024 | Min(s) read

Installing Due Diligence Microservices on AWS

This section explains you the installation of Due Diligence Microservice on AWS.

Prerequisite:

AWS CLI and Python 2.7.x should be installed prior to the deployment.

Procedure:

For DynamoDB

  1. Download the generated zip file from the target folder to the installation folder and extract the zip file.
  2. To enable deployments on multiple environments (DEV, UAT, and Prod) for same microservices within same account, set DEPLOYMENT_ENVIRONMENT variable with respective value.
  3. To enable authorization and authentication, follow these steps:
    1. In addition to the API key, enable JWT Authentication in the installation scripts.
    2. To enable security policies and access rights to the APIs, perform the XACML configurations in the installation scripts.
  4. In AWS command line, go to the installation directory.
  5. Modify the region information in install-aws.shscript specific to your installation:
    --region us-west-2
    --event-source-arn arn:aws:kinesis:us-west-2
    --uri arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2
  6. Excecute install-aws.sh shell script to create the resources.
  7. Sign in to the AWS portal and verify if Lambda functions and API Gateways are created.
    • Lambda functions

    • API Gateways

    After the successful deployment load the database, collections, and the reference data(master data) into the dynamo database for Due Diligence Microservice.

  8. To obtain the API key for all the endpoints in AWS, go to the API Keys section under the Amazon API gateway and select the corresponding API key. Click Show.

    The API key must be a part of the header (x-api-key) in all the requests.

    The Base path of the API gateway URL follows the structure below:

  9. You can retrieve the Rest API Id from Amazon API Gateway as shown below.

    Ensure that you replace the location and deployment Id with the appropriate values provided in the script during deployment.

For PostgreSQL DB

  1. Download the generated zip file from the target folder to the installation folder and extract the zip file.
  2. To enable deployments on multiple environments (DEV, UAT, and Prod) for same microservices within same account, set DEPLOYMENT_ENVIRONMENT variable with respective value.
  3. To enable authorization and authentication, follow these steps:
    1. In addition to the API key, enable JWT Authentication in the installation scripts.
    2. To enable security policies and access rights to the APIs, perform the XACML configurations in the installation scripts.
  4. In AWS command line, go to the installation directory.
  5. Modify the region information in install-aws-postgresql.shscript specific to your installation:
    --region us-west-2
    --event-source-arn arn:aws:kinesis:us-west-2
    --uri arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2
  6. Execute install-aws-postgresql.sh shell script to create the resources.
  7. Sign in to the AWS portal and verify if Lambda functions and API Gateways are created.
    • Lambda functions

    • API Gateways

    After the successful deployment load the database, collections, and the reference data(master data) into the dynamo database for Due Diligence Microservice.

  8. To obtain the API key for all the endpoints in AWS, go to the API Keys section under the Amazon API gateway and select the corresponding API key. Click Show.

    The API key must be a part of the header (x-api-key) in all the requests.

    The Base path of the API gateway URL follows the structure below:

  9. You can retrieve the Rest API Id from Amazon API Gateway as shown below:

    Ensure that you replace the location and deployment Id with the appropriate values provided in the script during deployment.

Copyright © 2020- Temenos Headquarters SA

Published on :
Tuesday, September 2, 2025 12:40:23 PM IST