This template provides a basic structure for developing serverless functions using SpringBoot for STACKIT Functions.
src/main/java/functions/CloudFunctionApplication.java: This is the main entry point for your function.stackit-functions.yaml: Manifest file for STACKIT Functions. Contains environment settings and other configured data.
This template is designed to work with a server wrapper that facilitates HTTP request handling.
By default the template exports the following route:
GET /: The default HTTP handler for your function. In this template, it responds withHello from STACKIT Functions.
Other requests will return a 404 response.
We highly recommend using the STACKIT Functions CLI in development.
To build this function:
sfn function build --image IMAGE_NAMERun the function locally:
sfn function runThis command will start a local server, making your function accessible for testing at http://localhost:8080 (or another port if configured).
Deploy your function to STACKIT Functions by using the following command:
sfn function deploy