-
Notifications
You must be signed in to change notification settings - Fork 3
/
serverless.yml
54 lines (49 loc) · 1.2 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
service: zip-aws-lambda
custom:
deployStage: ${opt:stage, self:provider.stage}
envVariables: ${file(../env-variables-${self:custom.deployStage}.json)}
writeEnvVars:
SERVERLESS_STAGE: ${self:custom.deployStage}
SERVERLESS_PROJECT: 'export'
SERVERLESS_SERVICE_NAME: ${self:service}
plugins:
- serverless-plugin-write-env-vars
provider:
name: aws
runtime: nodejs4.3
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:*"
Resource: "*"
functions:
zip:
description: AWS Lambda to zip ressources as stream between S3 buckets
handler: handler.zip
timeout: 300
package:
exclude:
- .npmignore
- config/**
- package.json
- README.md
- slslocal.sh
- tsconfig.json
- events/**
- '*.bat'
- '*.ts'
- '**/*.ts'
- 'src/dev/**'
- node_modules/aws-sdk/**
- node_modules/base64-js/**
- node_modules/buffer/**
- node_modules/crypto-browserify/**
- node_modules/ieee754/**
- node_modules/isarray/**
- node_modules/jmespath/**
- node_modules/punycode/**
- node_modules/querystring/**
- node_modules/sax/**
- node_modules/url/**
- node_modules/xml2js/**
- node_modules/xmlbuilder/**