changed table schema
This commit is contained in:
parent
92d3afd6e8
commit
8ddefe9c89
@ -173,3 +173,41 @@ functions:
|
|||||||
environment:
|
environment:
|
||||||
topic: ${self:custom.snsTopic}
|
topic: ${self:custom.snsTopic}
|
||||||
strategyTable: ${self:custom.strategyTable}
|
strategyTable: ${self:custom.strategyTable}
|
||||||
|
|
||||||
|
resources:
|
||||||
|
Resources:
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# keeps track of all strategfies, associated to their user accounts
|
||||||
|
#####################################################################
|
||||||
|
FreqStrategyTable:
|
||||||
|
Type: 'AWS::DynamoDB::Table'
|
||||||
|
DeletionPolicy: Retain
|
||||||
|
Properties:
|
||||||
|
AttributeDefinitions:
|
||||||
|
-
|
||||||
|
AttributeName: user
|
||||||
|
AttributeType: S
|
||||||
|
-
|
||||||
|
AttributeName: content
|
||||||
|
AttributeType: S
|
||||||
|
-
|
||||||
|
AttributeName: name
|
||||||
|
AttributeType: S
|
||||||
|
-
|
||||||
|
AttributeName: description
|
||||||
|
AttributeType: S
|
||||||
|
|
||||||
|
|
||||||
|
KeySchema:
|
||||||
|
-
|
||||||
|
'AttributeName': 'user',
|
||||||
|
'KeyType': 'HASH'
|
||||||
|
-
|
||||||
|
'AttributeName': 'name',
|
||||||
|
'KeyType': 'RANGE'
|
||||||
|
|
||||||
|
ProvisionedThroughput:
|
||||||
|
ReadCapacityUnits: 1
|
||||||
|
WriteCapacityUnits: 1
|
||||||
|
TableName: ${self:custom.trackingTable}
|
||||||
|
Loading…
Reference in New Issue
Block a user