Tag Archives: serverless
Bind Services to OpenWhisk Packages
Relative Links with IBM Cloud API Gateway
Deploying OpenWhisk Actions With Dependencies
package.json
since this can specify the entry point if it’s not index.js
which is the default.
Building Conversations With Alexa
The basic idea is that when creating the “intent”, i.e. the action that you want Alexa to do, you also define “slots”. The slots are the variables; if this were a command line tool, they’d be the arguments you typed. It’s possible to include both intent and slots in your wording when you speak to Alexa, but equally you can just invoke the skill and have it prompt you for the rest of the information. Continue reading
Package Parameters in OpenWhisk
One OpenWhisk Action Calls Another
One-Line Command For Newest OpenWhisk Logs
[pyg language=bash]
wsk activation list -l1 | tail -n1 | cut -d ‘ ‘ -f1 | xargs wsk activation logs
[/pyg]
From left to right, sections separated by the pipe |
character, this is what happens:
- get a list of activations, limited to just one activation (it sorts the newest one first by default)
- grab only the last line of that output (there’s some extra titles and stuff in there)
- use the `cut` command with the space character as a field delimiter, and use only the first field (this gets the ID of the activation)
- get the logs of that activation
Of course it’s wrapped up in a script so I just run that from the commandline and check where I went wrong this time …