Skip to content

Commit

Permalink
Add TTL to DynamoDB table
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexa committed Sep 25, 2017
1 parent cc7bc2b commit cb92851
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,22 @@ Resources:
- !GetAtt ConfigTable.Arn

ConfigTable:
Type: AWS::Serverless::SimpleTable
Type: "AWS::DynamoDB::Table"
Properties:
PrimaryKey:
Name: schedule
Type: String
AttributeDefinitions:
-
AttributeName: "schedule"
AttributeType: "S"
KeySchema:
-
AttributeName: "schedule"
KeyType: "HASH"
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TimeToLiveSpecification:
AttributeName: expiretime
Enabled: true

ChatTopicFunction:
Type: AWS::Serverless::Function
Expand Down

0 comments on commit cb92851

Please sign in to comment.