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

Installing Marketing Catalog Microservice on AWS

This section helps you to install the Marketing Catalog Microservice on AWS cloud.

Ensure AWS CLI and Python 2.7.x are installed prior to the deployment.

Procedure:

  1. Download the ms-marketingcatalog-package-docker-<release_number>.zip file from the target folder.
  2. Extract the zip file.
  3. To enable deployments on multiple environments such as Dev, UAT, and Prod, for the same microservices within the same account, set the DEPLOYMENT_ENVIRONMENT variable with respective value.

Dynamo DB

  1. To enable the internal authentication in addition to API key, perform the 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.
  3. To enable third party authentication, perform Keycloak configuration in ingester container.
  4. Verify the following properties related to ingestion in the install script.

    Environment Variable

    Description

    Example

    temn_msf_schema_registry_url

    URL of the schema registry

    http://localhost:8081

    HTTP_BASE_PATH

    Base path of the IRF provider container

    http://<IP>:<PORT>/irf-provider-container/api/v1.0.0/

    HTTP_RESOURCE_PATH

    Resource path of IRIS API used by marketing catalog Microservice - "product/{productId}/productConditions"

    product/{productId}/productConditions

  5. In AWS command line, go to the installation directory.
  6. Modify the region information in the install-aws.sh script as follows:
    --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
  7. To deploy the Microservice, execute the following shell scripts to create the resources.
    DynamoDB ScriptDescription
    install-aws.shTo deploy all the necessary components for a Microservice including streaming services, in order to run the Microservice independently.
    install-aws-ms.shTo deploy only the components necessary for Microservice. Data Event Streaming (DES) is presumed to be deployed and running already. The streaming services are not deployed.
  8. Log in to AWS portal and verify the following if they have been created properly.
    • Lambda functions

    • API Gateways

  9. To obtain the API key for all the endpoints in AWS, go to the API Key section under the Amazon API gateway and select the corresponding API key. Click show. The API key should be a part of header (x-api-key) in all the requests.

    After the successful deployment, database, collections and the reference data (master data) are loaded into the dynamo database for the Marketing Catalog Microservice.

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

    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.

Postgre SQL

  1. To enable the internal authentication in addition to API key, perform the 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.
  3. To enable third party authentication, perform Keycloak configuration in ingester container.
  4. Verify the following properties related to ingestion in the install script.

    Environment Variable

    Description

    Example

    temn_msf_schema_registry_url

    URL of the schema registry

    http://localhost:8081

    HTTP_BASE_PATH

    Base path of the IRF provider container

    http://<IP>:<PORT>/irf-provider-container/api/v1.0.0/

    HTTP_RESOURCE_PATH

    Resource path of IRIS API used by marketing catalog Microservice - "product/{productId}/productConditions"

    product/{productId}/productConditions

  5. In AWS command line, go to the installation directory.
  6. Modify the region information in the install-aws-postgresql.sh script as follows:
    --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
  7. To deploy the Microservice, execute the following shell scripts to create the resources.
    PostgreSQL ScriptDescription
    install-aws-postgresql.sh To deploy all the necessary components for a Microservice including streaming services, in order to run the Microservice independently.
    install-aws-postgresql-ms.sh To deploy only the components necessary for Microservice. Data Event Streaming (DES) is presumed to be deployed and running already. The streaming services are not deployed.
  8. Log in to AWS portal and verify the following if they have been created properly.
    • Lambda functions

    • API Gateways

  9. To obtain the API key for all the endpoints in AWS, go to the API Key section under the Amazon API gateway and select the corresponding API key. Click show. The API key should be a part of header (x-api-key) in all the requests.

    After the successful deployment, database, collections and the reference data (master data) are loaded into the postgresql database for the Marketing Catalog Microservice.

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

    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:39:20 PM IST