Skip to content

Commit

Permalink
[Set node v20.x]
Browse files Browse the repository at this point in the history
  • Loading branch information
tormozz48 committed May 1, 2024
1 parent 3d08d10 commit f45a8e5
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plugins:

provider:
name: aws
runtime: nodejs14.x
runtime: nodejs20.x
versionFunctions: false
tracing:
lambda: true
Expand Down Expand Up @@ -58,7 +58,7 @@ provider:
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Resource:
- Fn::GetAtt: [ EventsTable, Arn ]
- Fn::GetAtt: [EventsTable, Arn]
- Effect: Allow
Action:
- lambda:InvokeFunction
Expand Down Expand Up @@ -97,16 +97,12 @@ resources:
TableName: ${self:custom.tableName}
BillingMode: PAY_PER_REQUEST
AttributeDefinitions:
-
AttributeName: chatId
- AttributeName: chatId
AttributeType: N
-
AttributeName: eventDate
- AttributeName: eventDate
AttributeType: N
KeySchema:
-
AttributeName: chatId
- AttributeName: chatId
KeyType: HASH
-
AttributeName: eventDate
KeyType: RANGE
- AttributeName: eventDate
KeyType: RANGE

0 comments on commit f45a8e5

Please sign in to comment.