Add memory and timeout properties to serverless.yml files

This commit is contained in:
guyklainer 2017-08-23 16:44:12 +03:00
parent 11e7251342
commit c19d1eec94
2 changed files with 10 additions and 24 deletions

View File

@ -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

View File

@ -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