From 02afb4c79705de93921fdebb45b75e47a5e03759 Mon Sep 17 00:00:00 2001 From: miztch Date: Thu, 13 Jun 2024 17:58:16 +0000 Subject: [PATCH] fix: swap partition key and sort key --- template.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/template.yaml b/template.yaml index 4316310..86dc5c1 100644 --- a/template.yaml +++ b/template.yaml @@ -117,16 +117,16 @@ Resources: Properties: TableName: !Sub ${ApplicationName}-vlr-matches AttributeDefinitions: - - AttributeName: id - AttributeType: N - AttributeName: startDate AttributeType: S + - AttributeName: id + AttributeType: N BillingMode: PROVISIONED DeletionProtectionEnabled: True KeySchema: - - AttributeName: id - KeyType: HASH - AttributeName: startDate + KeyType: HASH + - AttributeName: id KeyType: RANGE ProvisionedThroughput: ReadCapacityUnits: 1