Skip to content

Commit

Permalink
pushing another new measure table
Browse files Browse the repository at this point in the history
  • Loading branch information
angelaco11 committed Sep 12, 2024
1 parent ea92872 commit 2d836d6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion services/database/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ custom:
measureTableName: ${self:custom.stage}-measures
bannerTableName: ${self:custom.stage}-banners
rateTableName: ${self:custom.stage}-rates
measureTableName2: ${self:custom.stage}-cs-measures
measureTable: ${self:custom.stage}-measure
dynamodb:
stages:
- local
Expand Down Expand Up @@ -109,6 +109,25 @@ resources:
- AttributeName: key
KeyType: HASH
BillingMode: PAY_PER_REQUEST # Set the capacity to auto-scale
CSMeasureTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: ${self:custom.measureTable}
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: true
StreamSpecification:
StreamViewType: NEW_AND_OLD_IMAGES
AttributeDefinitions:
- AttributeName: compoundKey
AttributeType: S
- AttributeName: measure
AttributeType: S
KeySchema:
- AttributeName: compoundKey
KeyType: HASH
- AttributeName: measure
KeyType: RANGE
BillingMode: PAY_PER_REQUEST # Set the capacity to auto-scale
Outputs:
CoreSetTableName:
Value: !Ref CoreSetTable
Expand Down

0 comments on commit 2d836d6

Please sign in to comment.