mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Add memory and timeout properties to serverless.yml files
This commit is contained in:
parent
11e7251342
commit
c19d1eec94
@ -19,21 +19,14 @@ provider:
|
||||
#environment: <env-XXXX> # NOTE: Remember to add the environment ID
|
||||
#account: <act-XXXX> # NOTE: Remember to add the account ID
|
||||
|
||||
# you can add packaging information here
|
||||
#package:
|
||||
# include:
|
||||
# - include-me.js
|
||||
# - include-me-dir/**
|
||||
# exclude:
|
||||
# - exclude-me.js
|
||||
# - exclude-me-dir/**
|
||||
|
||||
functions:
|
||||
hello:
|
||||
handler: main
|
||||
handler: handler.main
|
||||
memory: 128
|
||||
timeout: 30
|
||||
|
||||
|
||||
# extend the framework using plugins listed here:
|
||||
# https://github.com/serverless/plugins
|
||||
plugins:
|
||||
- serverless-spotinst-functions
|
||||
- serverless-spotinst-functions
|
||||
|
||||
@ -11,29 +11,22 @@
|
||||
#
|
||||
# Happy Coding!
|
||||
|
||||
service: spotinst-nodejs # NOTE: update this with your service name
|
||||
service: spotinst-python # NOTE: update this with your service name
|
||||
|
||||
provider:
|
||||
name: spotinst
|
||||
runtime: nodejs4.8
|
||||
runtime: python2.7
|
||||
#environment: <env-XXXX> # NOTE: Remember to add the environment ID
|
||||
#account: <act-XXXX> # NOTE: Remember to add the account ID
|
||||
|
||||
# you can add packaging information here
|
||||
#package:
|
||||
# include:
|
||||
# - include-me.js
|
||||
# - include-me-dir/**
|
||||
# exclude:
|
||||
# - exclude-me.js
|
||||
# - exclude-me-dir/**
|
||||
|
||||
functions:
|
||||
hello:
|
||||
handler: main
|
||||
handler: handler.main
|
||||
memory: 128
|
||||
timeout: 30
|
||||
|
||||
|
||||
# extend the framework using plugins listed here:
|
||||
# https://github.com/serverless/plugins
|
||||
plugins:
|
||||
- serverless-spotinst-functions
|
||||
- serverless-spotinst-functions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user