Skip to content

Commit 88e77c5

Browse files
committed
add cloudformation for table definition
1 parent 9aef776 commit 88e77c5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

cloudformation/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,30 @@ Resources:
306306
- AttributeName: userEmail
307307
KeyType: HASH
308308

309+
RateLimiterTable:
310+
Type: "AWS::DynamoDB::Table"
311+
DeletionPolicy: "Delete"
312+
UpdateReplacePolicy: "Delete"
313+
Properties:
314+
BillingMode: "PAY_PER_REQUEST"
315+
TableName: infra-core-api-rate-limiter
316+
DeletionProtectionEnabled: true
317+
PointInTimeRecoverySpecification:
318+
PointInTimeRecoveryEnabled: false
319+
AttributeDefinitions:
320+
- AttributeName: PK
321+
AttributeType: S
322+
- AttributeName: SK
323+
AttributeType: S
324+
KeySchema:
325+
- AttributeName: PK
326+
KeyType: HASH
327+
- AttributeName: SK
328+
KeyType: RANGE
329+
TimeToLiveSpecification:
330+
AttributeName: ttl
331+
Enabled: true
332+
309333
EventRecordsTable:
310334
Type: "AWS::DynamoDB::Table"
311335
DeletionPolicy: "Retain"

0 commit comments

Comments
 (0)