-
Notifications
You must be signed in to change notification settings - Fork 3
/
serverless.yml
41 lines (36 loc) · 1.15 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
service: serverless-plugin-demo
provider:
name: aws
runtime: python2.7
profile: serverless-admin
stage: dev
region: us-east-1
versionFunctions: false
plugins:
- serverless-package-python-functions
custom:
pkgPyFuncs:
requirementsFile: requirements.txt # Name of your function-level pip requirements files. Must be the same for all functions
globalRequirements: # Path to global requirements files
- ./globalRequirements.txt
globalIncludes: # Path to folder with global dependencies
- ./common_files
buildDir: _build # Name of build directory
cleanup: true # Clean build directory after packaging?
functions:
simplejsonFunc:
name: simplejsonFunc
description: Requires simplejson library
handler: function.handler
package:
include:
- ./simplejsonFunc
artifact: ${self:custom.pkgPyFuncs.buildDir}/${self:functions.simplejsonFunc.name}.zip
jinja2Func:
name: jinja2Func
handler: function.handler
description: Requires jinja2 library
package:
include:
- ./jinja2Func
artifact: ${self:custom.pkgPyFuncs.buildDir}/${self:functions.jinja2Func.name}.zip