Skip to content

Commit 7455a66

Browse files
committed
add GSI for host field
1 parent 5239c0e commit 7455a66

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cloudformation/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ Resources:
120120
KeySchema:
121121
- AttributeName: id
122122
KeyType: HASH
123+
GlobalSecondaryIndexes:
124+
- IndexName: HostIndex
125+
KeySchema:
126+
- AttributeName: host
127+
KeyType: HASH
128+
Projection:
129+
ProjectionType: ALL
123130

124131
AppApiGateway:
125132
Type: AWS::Serverless::Api

0 commit comments

Comments
 (0)