-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
40 lines (34 loc) · 860 Bytes
/
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
service: stepfunctions-error-notify
frameworkVersion: "2"
provider:
name: aws
runtime: python3.8
lambdaHashingVersion: 20201221
stage: ${opt:stage, 'dev'}
region: ${opt:region, 'ap-northeast-1'}
memorySize: 256
iamRoleStatements:
- Effect: "Allow"
Action:
- "secretsmanager:GetSecretValue"
Resource:
- "*"
environment: ${self:custom.environment.${self:provider.stage}}
custom:
pythonRequirements:
usePipenv: true
environment:
dev:
SECRET_NAME: dev/slack
prod:
SECRET_NAME: prod/slack
functions:
time_out:
handler: handler.time_out
notify_error:
handler: slack.notify_error
environment: ${self:custom.environment.${self:provider.stage}}
stepFunctions: ${file(includes/state-machines.yml)}
plugins:
- serverless-step-functions
- serverless-python-requirements