Advanced Function Setup¶
This example shows how to setup a function using additional files, environment variables and a configurable runtime.
Adding Additional Files¶
Sometimes it is necessary to add additional files from outside the source
directory to the function package. This can be done via the --files
parameter.
$ ./srk function create -s <source-dir> -f <path-to-file1>,<path-to-file2>
Setting Environment Variables¶
Environment variables can provide additional information to the function and
the runtime environment. They can be set by adding the --env
parameter at
function creation.
$ ./srk function create -s <source-dir> -e VAR1=VALUE1,VAR2=VALUE2