-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
38 lines (34 loc) · 854 Bytes
/
serverless.yml
File metadata and controls
38 lines (34 loc) · 854 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
service: sls-redshift-loader
custom:
stage: ${opt:stage, self:provider.stage}
staging:
accountId: 123456789
production:
accountId: 987654321
prune:
automatic: true
number: 2 # number of versions to keep
provider:
name: aws
cfLogs: true
region: eu-west-1
environment: ${file(config/${self:custom.stage}.json)}
functions:
redshift-loader:
name: redshift-loader
region: eu-west-1
runtime: nodejs8.10
handler: redshift-loader.handler
role: arn:aws:iam::${self:custom.${opt:stage}.accountId}:role/service-role/redshift-loader-lambda-role
memorySize: 256
timeout: 300
events:
- existingS3:
bucket: BUCKET_NAME
events:
- s3:ObjectCreated:*
rules:
- prefix: clean/
- suffix: .csv.gz
plugins:
- serverless-prune-plugin