-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
43 lines (39 loc) · 951 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
41
42
43
service: serverless-backup-analysis
provider:
name: aws
runtime: python3.6
region: eu-west-1
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:ListBucket"
Resource:
- "arn:aws:s3:::kabisa-backup"
- "arn:aws:s3:::kabisa-backup/*"
- "arn:aws:s3:::kabisa-backup-archive"
- "arn:aws:s3:::kabisa-backup-archive/*"
- "arn:aws:s3:::dovetail-backup-archive"
- "arn:aws:s3:::dovetail-backup-archive/*"
- "arn:aws:s3:::kabisa-logdna"
- "arn:aws:s3:::kabisa-logdna/*"
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: non-linux
package:
include:
- requirements.txt
- backup/**
exclude:
- tests/**
- requirements_test.txt
- requirements_dev.txt
functions:
backup-analysis:
handler: backup.main.handler
events:
- http:
path: /
method: post
cors: true