-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
60 lines (50 loc) · 1.16 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
55
56
57
58
59
---
service: onepassword-provisioning
plugins:
- serverless-prune-plugin
- serverless-python-requirements
provider:
environment:
FUNCTION_PREFIX: "${self:service}-${self:provider.stage}-"
SECRET_ARN: "${env:SECRET_ARN}"
TRANSIT_KEY: "${env:TRANSIT_KEY}"
iamRoleStatements:
- Action:
- secretsmanager:GetSecretValue
- secretsmanager:UpdateSecret
Effect: Allow
Resource:
- "${env:SECRET_ARN}"
- Action:
- lambda:InvokeFunction
Effect: Allow
Resource: "*"
name: aws
region: us-east-1
runtime: python3.8
stage: ${opt:stage, "production"}
functions:
create_account:
handler: code/handler.create_account
memorySize: 128
timeout: 25
refresh_token:
events:
- schedule: rate(25 minutes)
handler: code/handler.refresh_token
memorySize: 128
timeout: 25
slack_interaction:
events:
- http:
integration: lambda
method: post
path: /slack_interaction
handler: code/handler.slack_interaction
memorySize: 128
timeout: 25
custom:
pythonRequirements:
dockerizePip: true
fileName: code/requirements.txt
vendor: code/modules