Skip to content

Commit 89726ee

Browse files
committed
Updated wsgi
1 parent 2d6f9ce commit 89726ee

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12-
"serverless": "^2.64.1",
13-
"serverless-python-requirements": "^5.1.1",
14-
"serverless-wsgi": "^2.0.2"
12+
"serverless": "^2.70.0",
13+
"serverless-python-requirements": "^5.2.2",
14+
"serverless-wsgi": "^3.0.0"
1515
}
1616
}

serverless.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ provider:
1010
DYNAMODB_TABLE_NAME: ${self:service}-${sls:stage}
1111
httpApi:
1212
cors: true
13-
# iamRoleStatements:
14-
# - Effect: "Allow"
15-
# Action:
16-
# - dynamodb:*
17-
# Resource:
18-
# Fn::GetAtt:
19-
# - oneTable
20-
# - Arn
13+
iamRoleStatements:
14+
- Effect: "Allow"
15+
Action:
16+
- dynamodb:*
17+
Resource:
18+
Fn::GetAtt:
19+
- oneTable
20+
- Arn
2121
# - Effect: "Allow"
2222
# Action:
2323
# - s3:*
@@ -30,6 +30,8 @@ provider:
3030

3131
functions:
3232
api:
33+
timeout: 300
34+
memorySize: 128
3335
handler: wsgi_handler.handler
3436
events:
3537
- httpApi:
@@ -85,6 +87,7 @@ resources:
8587
ProvisionedThroughput:
8688
ReadCapacityUnits: 1
8789
WriteCapacityUnits: 1
90+
BillingMode: PAY_PER_REQUEST
8891
# s3bucket:
8992
# Type: AWS::S3::Bucket
9093
# Properties:

0 commit comments

Comments
 (0)