Updates README for openwhisk

This commit is contained in:
dbachko 2017-11-15 16:31:00 -05:00
parent 81621633a7
commit 66a12d2ffe
3 changed files with 11 additions and 11 deletions

View File

@ -25,7 +25,7 @@ service: myService
provider:
name: openwhisk
runtime: nodejs:6 # optional, default is nodejs:default
memorySize: 512 # optional, default is 256
memory: 512 # optional, default is 256
timeout: 30 # optional, default is 60
functions:

View File

@ -25,7 +25,7 @@ provider:
name: openwhisk
runtime: nodejs:default
memory: 256 # Overwrite default memory size. Default is 512.
timeout: 10 # The default is 60
timeout: 10 # The default is 60
overwrite: true # Can we overwrite deployed functions? default is true
namespace: 'custom' # use custom namespace, defaults to '_'
ignore_certs: true # ignore ssl verification issues - used for local deploys
@ -34,18 +34,18 @@ functions:
usersCreate: # A Function
handler: users.create # The file and module for this specific function.
sequence: # Use sequences rather than handler to handle events. handler and sequence properties are mutually exclusive.
- function_a
- function_b
- function_c
memory: 256 # memorySize for this specific function.
timeout: 10 # Timeout for this specific function. Overrides the default set above.
- function_a
- function_b
- function_c
memory: 256 # memory size for this specific function.
timeout: 10 # Timeout for this specific function. Overrides the default set above.
runtime: nodejs:6
overwrite: false # Can we overwrite deployed function?
namespace: 'custom' # use custom namespace, defaults to '_'
annotations:
parameter_name: value
parameters:
parameter_name: value
parameter_name: value
events: # The Events that trigger this Function
# This creates an API Gateway HTTP endpoint which can be used to trigger this function. Learn more in "events/apigateway"
- http: METHOD /path/to/url
@ -59,7 +59,7 @@ resources:
triggers:
my_trigger: # trigger with default parameter bound.
parameters:
hello: world
hello: world
alarm_trigger: # trigger connected to event feed
parameters:
hello: world

View File

@ -158,7 +158,7 @@ service: users
provider:
name: openwhisk
runtime: nodejs
memorySize: 512
memory: 512
```
@ -175,7 +175,7 @@ service: users
provider:
name: openwhisk
runtime: nodejs
memorySize: 512
memory: 512
```