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

feat: add GSI to Resource DDB Table #533

Merged
merged 1 commit into from
Jan 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ resources:
AttributeType: S
- AttributeName: vid
AttributeType: N
- AttributeName: _subscriptionStatus
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH
Expand All @@ -353,6 +355,16 @@ resources:
- Key: 'service'
Value: 'fhir'
- !Ref AWS::NoValue
# add GSI to track active subscriptions
GlobalSecondaryIndexes:
- IndexName: activeSubscriptions
KeySchema:
- AttributeName: _subscriptionStatus
KeyType: HASH
- AttributeName: id
KeyType: RANGE
Projection:
ProjectionType: ALL
ExportRequestDynamoDBTable:
Metadata:
cfn_nag:
Expand Down