Handlers are intended as a convenient way to write steps without having to build and publish images.
A handler is defined as:
- Code to run.
- A runtime to build and execute the code. E.g.
golang1-17
,java16
,python3-9
ornode16
:
When a step starts, the code will be written to a file, and the file compiled and executed.
code:
source: |
def handler(msg, context):
return msg
runtime: python3-9
Examples: