-
Notifications
You must be signed in to change notification settings - Fork 5
/
serverless.yml
54 lines (47 loc) · 1.06 KB
/
serverless.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
service: serverless-python
frameworkVersion: '^3.17.0'
configValidationMode: error
plugins:
- serverless-python-requirements
provider:
name: aws
deploymentMethod: direct
architecture: arm64
runtime: python3.9
region: ${env:AWS_DEFAULT_REGION, 'us-east-1'}
stage: stg
logRetentionInDays: 30
httpApi:
payload: '2.0'
disableDefaultEndpoint: true
apiGateway:
shouldStartNameWithService: true
deploymentBucket:
blockPublicAccess: true
custom:
true: true
false: false
pythonRequirements:
slim: true
usePoetry: true
requirePoetryLockFile: true
useDownloadCache: true
useStaticCache: true
dockerizePip: ${self:custom.${env:DOCKERIZE_PIP, 'true'}}
cacheLocation: .serverless-python-requirements
staticCacheMaxVersions: 1
package:
individually: true
patterns:
- '!./**'
- './LICENSE.txt'
- './pyproject.toml'
- './setup.py'
- './handlers/**/*.py'
- './makenew_serverless_python/**/*.py'
- '!./**/*_test.py'
functions:
todo:
url: true
handler: handlers/todo.main