-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless-data.yml
30 lines (29 loc) · 1008 Bytes
/
serverless-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
############################################################################################################
# This includes all DynamoDb resources
#
# Grants Table - This table stores all code grants on a ttl. If a code grant is not retrieved before
# expiration, they will be automatically removed.
#
############################################################################################################
Resources:
GrantsTable:
Type: AWS::DynamoDB::Table
DeletionPolicy: Delete
UpdateReplacePolicy: Delete
Properties:
AttributeDefinitions:
- AttributeName: code
AttributeType: S
GlobalSecondaryIndexes:
KeySchema:
- KeyType: HASH
AttributeName: code
PointInTimeRecoverySpecification:
PointInTimeRecoveryEnabled: false
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: grants
TimeToLiveSpecification:
AttributeName: ttl
Enabled: true