-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
44 lines (38 loc) · 991 Bytes
/
serverless.yml
File metadata and controls
44 lines (38 loc) · 991 Bytes
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
service: toco-project-backup
frameworkVersion: '2 || 3'
custom:
config: ${file(./configs.yml)}
pythonRequirements:
zip: true
provider:
lambdaHashingVersion: '20201221'
name: aws
memorySize: 128
timeout: 60
stage: ${self:custom.config.provider.stage}
runtime: ${self:custom.config.provider.runtime}
region: ${self:custom.config.provider.region}
role: ${self:custom.config.provider.role}
vpc:
securityGroupIds: ${self:custom.config.provider.ec2_sg}
subnetIds: ${self:custom.config.provider.subnets}
package:
exclude:
- .idea/**
- __pycache__/**
- dumps/**
- node_modules/**
functions:
selectProject:
handler: handler.select_project
events:
- schedule:
rate: cron(*/30 * * * ? *)
enabled: true
description: 'project-backup-selector'
backupProject:
handler: handler.backup_project
events:
- sqs: ${self:custom.config.provider.sqs}
plugins:
- serverless-python-requirements