-
Notifications
You must be signed in to change notification settings - Fork 2
/
serverless.yml
51 lines (43 loc) · 1.17 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
service: aws-serverless-skeleton
frameworkVersion: ">=2.1.0 <3.0.0"
package:
patterns:
- '!node_modules/**'
- '!.idea/**'
- '!.requirements/**'
- '!env/**'
- '!config/**'
- '!README.md'
- '!package.json'
- '!package-lock.json'
- '!requirements.txt'
- '!requirements-dev.txt'
- '!.tox/**'
- '!.cache/**'
- '!.serverless/**'
- '!seed/**'
- '!tests/**'
- '!tox.ini'
- '!.pytest_cache/**'
- '!htmlcov/**'
- 'config/resource/logging.yaml'
plugins:
- serverless-python-requirements
- serverless-dynamodb-local
- serverless-offline
custom: ${file(config/${self:provider.stage}-env.yml):custom}
functions: ${file(config/${self:provider.stage}-env.yml):functions}
configValidationMode: warn
provider:
name: aws
runtime: python3.7
region: eu-west-1
stage: ${opt:stage, 'local'}
environment: ${file(config/${self:provider.stage}-env.yml):environment}
iam: ${file(config/resource/iam_policies.yml):iam}
lambdaHashingVersion: 20201221
resources:
- ${file(config/resource/cognito.yml)}
- ${file(config/resource/dynamodb.yml)}
- ${file(config/resource/rules.yml)}
- ${file(config/resource/s3.yml)}