Skip to content

Commit

Permalink
Add timeout and other additional function parameter docs
Browse files Browse the repository at this point in the history
  • Loading branch information
flomotlik committed Nov 7, 2016
1 parent 5430fd8 commit 57698bc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/providers/aws/guide/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ service: myService
provider:
name: aws
runtime: nodejs4.3
memorySize: 512 # optional, default is 1024
timeout: 10 # optional, default is 6

functions:
functionOne:
handler: handler.functionOne
hello:
handler: handler.hello # required, handler set in AWS Lambda
name: ${self:provider.stage}-lambdaName # optional, Deployed Lambda name
description: Description of what the lambda function does # optional, Description to publish to AWS
runtime: python2.7 # optional overwrite, default is provider runtime
memorySize: 512 # optional, default is 1024
timeout: 10 # optional, default is 6
```
The `handler` property points to the file and module containing the code you want to run in your function.
Expand Down Expand Up @@ -71,7 +78,7 @@ service: myService
provider:
name: aws
runtime: nodejs4.3
memorySize: 512 # inherited value
memorySize: 512 # will be inherited by all functions
functions:
functionOne:
Expand Down

0 comments on commit 57698bc

Please sign in to comment.