Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
feat: add ES hard delete config value (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bingjiling authored Aug 9, 2021
1 parent ea14232 commit 7581ddf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ custom:
useHapiValidator: ${opt:useHapiValidator, 'false'}
enableMultiTenancy: ${opt:enableMultiTenancy, 'false'}
logLevel: ${opt:logLevel, 'error'}
enableESHardDelete: ${opt:enableESHardDelete, 'false'}
patientCompartmentFileV3: 'patientCompartmentSearchParams.3.0.2.json'
patientCompartmentFileV4: 'patientCompartmentSearchParams.4.0.1.json'
bundle:
Expand Down Expand Up @@ -116,6 +117,8 @@ functions:
description: 'Write DDB changes from `resource` table to ElasticSearch service'
role: DdbToEsLambdaRole
handler: ddbToEsLambda/index.handler
environment:
ENABLE_ES_HARD_DELETE: ${self:custom.enableESHardDelete}
events:
- stream:
type: dynamodb
Expand Down

0 comments on commit 7581ddf

Please sign in to comment.