Skip to content

Functions

A function is a small serverless handler that runs on demand instead of staying up as a long-lived process. You give Ownkube some code and a trigger, and it runs the code in your own AWS account when the trigger fires. There’s no container to size and nothing running when the function is idle.

Functions are different from the other resource types in one important way: they are cluster-less. A web app, worker, job, or database runs on a cluster. A function attaches directly to an AWS account and region instead, so you can use functions even before you create a cluster.

  1. Pick a source

    Functions build from a GitHub repository. Connect the GitHub App (see Registries), then pick the repo and branch. Ownkube packages your code into a deployable artifact on each push.

  2. Choose a runtime

    Pick the language runtime. Ownkube suggests a default handler for each:

    RuntimeDefault handler
    Node.js 24 / 22index.handler
    Python 3.14 / 3.13lambda_function.lambda_handler
    Java 25 / 21example.Handler::handleRequest
    .NET 10Function::Function.Handler::FunctionHandler
    Ruby 3.4lambda_function.lambda_handler
    Custom (Go, Rust)bootstrap

    The handler is the entry point inside your code. The suggestion is editable.

  3. Set size and timeout

    Choose the memory (in MB), the timeout (in seconds), and the architecture (x86_64 or arm64). Memory and architecture together decide how much CPU the function gets and what it costs to run.

  4. Add a trigger

    Every function needs at least one trigger, HTTP or a schedule (or both). See Triggers.

  5. Set environment variables

    Add any KEY=value pairs your handler reads at runtime. They’re stored with the function and injected when it runs.

An HTTP trigger gives the function its own HTTPS invoke URL. Call the URL and the function runs.

  • Auth: leave it open (none) or require AWS IAM signing (iam).
  • CORS: configure allowed origins, methods, headers, and max-age for browser callers.
  • Logs are captured with a configurable retention window, the same way deployments handle logs.
  • Functions run on a platform version, like the other resource types. When Ownkube ships a newer version with reliability, performance, and security improvements, the function’s detail page shows an Upgrade control. Staying current is how you pick up new capabilities.
  • Functions are gated. You need a connected AWS account before you can create one, and the option may be limited by your plan while in beta.
  • Pricing isn’t finalized. Functions don’t yet appear on the pricing page; the billing model for serverless usage is still being worked out.
  • GitHub is the only source today. Building from other version-control providers is on the roadmap.