Reference

This section covers various scripts executed for configurations in a AWS region.

Environment Parameters

After you run install-aws.sh, the below environmental parameters are set in the environment. 

  • DATABASE_KEY=dynamodb
  • temn_msf_security_authz_enabled=false
  • className_getEntitlements=com.temenos.microservice.entitlement.function.EntitlementFunctions

Database configuration managed in install-aws.sh

Table Creation Expand source

aws dynamodb create-table --table-name <value> --attribute-definitions <value> --key-schema <value> --provisioned-throughput <value>
  
  
Example:
aws dynamodb create-table --table-name ms_entitlements_entitlement --attribute-definitions AttributeName=userId,AttributeType=S --key-schema AttributeName=userId,KeyType=HASH --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=1

The below database tables are created in the dynamodb configured. 

Table-Name

Attribute-Name

Key-Type

ms_entitlements_entitlement

userId

HASH

Lambda Functions created using install-aws.sh

You can create Lambda function using the below script.

aws lambda create-function --function-name <value> --runtime <value> --role <value> --handler <value> --description <value> --timeout <value> --memory-size <value> --publish --tags <value> --zip-file <value> --environment <value>
  
  
Example:
aws lambda create-function --function-name entitlements-entitlement --runtime java8 --role arn:aws:iam::177642146375:role/lambda_basic_execution --handler com.temenos.microservice.entitlement.function.GetEntitlementsFunctionAWS::invoke --description "Accounts API of Entitlements Service" --timeout 120 --memory-size 192 --publish --tags FunctionType=API,Service=Entitlements --zip-file fileb://app/$serviceFileName --environment Variables=\{DATABASE_KEY=dynamodb,temn_msf_security_authz_enabled=false,className_getEntitlements=com.temenos.microservice.entitlement.function.EntitlementFunctions\}

API Gateway Creation

You can create API Gateway using the install-aws.sh script.

The available APIs are listed below.

API

Description

/v1.0.0/party/customers/externalUserIds/{externalUserId}/entitlements

To fetch the account details from a particular user-ID


Bookmark Name Actions
Feedback
x