- Node:
- Create a copy of the
functions/template-nodeand name it accordingly (should be in the same folder). - Navigate to your copy.
- You are able to add dependencies with
node install. - Adjust the
cloudFunctionwithinindex.jsto your needs. - Follow the deployment guides from AWS and IBM.
- Create tests in
testdirectory and create a test script inpackage.jsonif you plan to use automated testing with the OpenFaaS CLI. - Follow the deployment guide for OpenFaaS Docker images.
- Create a copy of the
- Python:
- Create a copy of the
functions/template-pythonand name it accordingly (should be in the same folder). - Navigate to your copy.
- Adjust the
cloud_functionwithincloud_function.pyto your needs. - Follow the layer guides from AWS and IBM to add custom dependencies.
- Follow the deployment guides from AWS and IBM.
- Adjust the function test in
handler_test.pyand thetox.iniif you plan to use automated testing with the OpenFaaS CLI. - Add any
pipdependencies inrequirements.txt. - Follow the deployment guide for OpenFaaS Docker images.
- Create a copy of the
- Ruby:
- Create a copy of the
functions/template-rubyand name it accordingly (should be in the same folder). - Navigate to your copy.
- Adjust the
Handlerclass withinhandler.rbto your needs. - Add any required
gemsinGemfile. - Follow the deployment guide for OpenFaaS Docker images.
- Create a copy of the
- Go:
- Create a copy of the
functions/template-goand name it accordingly (should be in the same folder). - Navigate to your copy.
- Adjust the
Handlerfunction withinhandler.goto your needs. - Follow the deployment guide for OpenFaaS Docker images.
- Create a copy of the