forked from jameshy/pgdump-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
43 lines (41 loc) · 984 Bytes
/
serverless.yml
File metadata and controls
43 lines (41 loc) · 984 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
service: postgres-backup
custom:
staging:
versionFunctions: false
production:
versionFunctions: true
provider:
name: aws
runtime: nodejs6.10
cfLogs: true
memorySize: 1024
timeout: 10
role: arn:aws:iam::371305127297:role/lambda_exec_role
region: us-west-2
vpc:
securityGroupIds:
- sg-f82fb69f
subnetIds:
- subnet-8b8459fd
- subnet-b4e65dd0
- subnet-32ad4f6a
versionFunctions: ${self:custom:${opt:stage}:versionFunctions}
package:
exclude:
#- node_modules/** # add this yourself
#- '!node_modules/@types/**' # add this yourself
- test/**
functions:
backup-postgres:
name: ${opt:stage}-backup-postgres
environment:
NODE_ENV: ${opt:stage}
handler: index.handler
role: arn:aws:iam::371305127297:role/lambda_basic_vpc_execution
events:
- schedule:
rate: rate(1 day)
enabled: true
input:
stageParams:
stage: production