From c19d1eec94f017d902aac104ed630e6982bf33f2 Mon Sep 17 00:00:00 2001 From: guyklainer Date: Wed, 23 Aug 2017 16:44:12 +0300 Subject: [PATCH] Add memory and timeout properties to serverless.yml files --- .../templates/spotinst-nodejs/serverless.yml | 15 ++++----------- .../templates/spotinst-python/serverless.yml | 19 ++++++------------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/lib/plugins/create/templates/spotinst-nodejs/serverless.yml b/lib/plugins/create/templates/spotinst-nodejs/serverless.yml index af88df7a1..280de8e23 100644 --- a/lib/plugins/create/templates/spotinst-nodejs/serverless.yml +++ b/lib/plugins/create/templates/spotinst-nodejs/serverless.yml @@ -19,21 +19,14 @@ provider: #environment: # NOTE: Remember to add the environment ID #account: # 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 \ No newline at end of file + - serverless-spotinst-functions diff --git a/lib/plugins/create/templates/spotinst-python/serverless.yml b/lib/plugins/create/templates/spotinst-python/serverless.yml index af88df7a1..c47d11ce0 100644 --- a/lib/plugins/create/templates/spotinst-python/serverless.yml +++ b/lib/plugins/create/templates/spotinst-python/serverless.yml @@ -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: # NOTE: Remember to add the environment ID #account: # 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 \ No newline at end of file + - serverless-spotinst-functions