-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yaml
48 lines (42 loc) · 974 Bytes
/
serverless.yaml
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
service: system-notifications1
package:
individually: true
provider:
name: aws
runtime: python3.8
region: sa-east-1
memorySize: 128
stage: ${opt:stage, "staging"}
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: true
layer:
name: notifications-layer
description: Notifications Service
compatibleRuntimes:
- python3.8
functions:
app:
package:
include:
- "app.py"
exclude:
- "package.json"
- "package-lock.json"
- ".serverless/**"
- ".virtualenv/**"
- "node_modules/**"
handler: app.handler
environment:
STAGE: ${self:provider.stage}
ENVIRON_TYPE: staging
STAGING__SLACK_API_TOKEN: ${env:STAGING__SLACK_API_TOKEN}
STAGING__SECRET: ${env:STAGING__SECRET}
layers:
- { Ref: PythonRequirementsLambdaLayer }
events:
- http:
method: any
path: /{proxy+}