Installing Microservices by Enabling Authentication and Authorisation Service

This section helps you to install the microservice in aws by enabling the authentication and authorisation Service.

Procedure:

  1. Create the ENTITLEMENT_SERVICE_HOME directory.
  2. Extract the ms-entitlement-package-aws-<release>.zip release bundle to the ENTITLEMENT_SERVICE_HOME directory.
  3. To make the microservice up and running, execute the ./install-aws.sh command to create AWS resources.
  4. Configure the environment variables available in getEntitlementsWithActions-entitlement API lambda function file as follows.

    Variable Name

    Variable Value

    Description

    temn_runtime_env

    AWS

    Specifying the runtime environment as AWS

    POLICY_CALLBACK_ENABLED

    true

    Enabling the policy callback mechanism

    PDP_CONFIG

    classpath:xacml/entitlements-pdp-callback-config.xml

    Mapping the pdp-callback configuration file available in classpath

    temn_msf_security_authz_xacml_policyset_id

    ALL

    In-order to fetch all the XACML policy files to parse the mapped actions

    temn_config_service_base_path

    https://85f5nm31ye.execute-api.eu-west-2.amazonaws.com/test-primary/v1.0.0

    Generic-Config microservice end point base URL

    temn_config_service_resource_path

    system/configurationGroups/{groupId}/configuration

    Generic-Config microservice resource path to get all configurations

    temn_config_service_api_key

    mcpPPU4LSH1w4eKCCeqcg5C9eqoWausM5qEJKCXH

    Generic-Config microservice API_KEY value

    EXECUTION_ENVIRONMENT

    TEST

    Remove this variable so that, actual API will call out

  5. To stop and remove the existing resources, execute the ./destroy-aws.sh command.

Bookmark Name Actions
Feedback
x