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 and carvantes committed Aug 18, 2021
1 parent e3f5722 commit fc60522
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 @@ -18,6 +18,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 @@ -112,6 +113,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 fc60522

Please sign in to comment.