---
title: How to Deploy Fission as an AWS Lambda Alternative
url: https://docs.vultr.com/how-to-deploy-fission-as-an-aws-lambda-alternative
description: Deploy Fission on Kubernetes as an AWS Lambda alternative with Helm, Python functions, HTTP routes, time and queue triggers, executors, and a migration path.
publish_date: 2026-12-02T16:03:49.488906Z
last_updated: 2026-12-02T17:49:18.464535Z
author: Abhi Jindal
header_image: https://assets.vultrdevrel.com/docs-main-doc-assets-1/2692/f3b515fe-7441-457b-95b7-271c7bdc6088.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

[AWS Lambda](https://aws.amazon.com/lambda/) is the serverless compute service from Amazon Web Services (AWS). It runs function code in response to HTTP requests, schedules, queue messages, and events from other AWS services, scales the underlying compute automatically, and bills for each request and for the time that each invocation runs. That model removes server management, but it also ties functions to Lambda's runtime model, AWS event sources, and AWS identity controls, and Lambda's cost rises in step with invocation volume.

[Fission](https://fission.io/) is an open-source serverless function framework that runs on Kubernetes. It lets you write short-lived functions in Python, Go, Node.js, and other languages, then invoke them over HTTP, on a schedule, or from a message queue without managing a separate server or deployment for each function. Unlike Lambda, Fission does not hide the cluster: it adds Lambda-style functions to a Kubernetes cluster that you already operate and pay for. In exchange for operating Fission and its cluster yourself, you keep functions on your own infrastructure, avoid per-invocation pricing, and choose your cluster's region and network.

This article explains how to deploy Fission as an alternative to AWS Lambda. It covers the Fission installation with Helm, Python environments and functions, HTTP routes through a load balancer, time and message queue triggers, the `poolmgr` and `newdeploy` executors, and migration from AWS Lambda.

## Understanding Fission Architecture

Fission installs as a set of components in your cluster, and each Lambda concept maps onto a Fission resource, setting, or component. You manage most of them with the `fission` command-line interface (CLI). The table below pairs each Lambda concept with its closest Fission equivalent so that you can plan a migration before running any commands. Some pairs match directly, but others differ in behavior, so read the description column first.

| AWS Lambda | Closest Fission Equivalent | Description |
| --- | --- | --- |
| Lambda function | Fission function | Binds your handler code to an environment and runs it on demand inside the cluster. |
| Lambda runtime | Fission environment | Names the runtime container image, and optionally a builder image, that supplies the language runtime and loads function code when a request arrives. |
| Lambda deployment package | Fission package | Holds an archive of source or compiled code, and a builder turns source archives into a deployable artifact inside the cluster. |
| Lambda provisioned concurrency | `newdeploy` executor with `minScale` of `1` or more | Keeps function-specific pods running, so requests skip both the pod start and the code load. |
| No direct equivalent | `poolmgr` executor | Keeps a pool of generic warm pods for each environment and loads function code into one of them when a request arrives, so the first request skips the pod start but still pays for the code load. |
| Lambda scale to zero | `newdeploy` executor with `minScale` set to `0` | Creates a dedicated deployment for each function and removes every pod once the function goes idle, so the next request pays a cold start. |
| API Gateway to Lambda | Fission router and HTTP trigger | Router receives HTTP traffic and dispatches each route to the function bound to it. |
| EventBridge Scheduler | Fission time trigger | Invokes a function on a cron schedule from inside the cluster, with no external scheduler. |
| Simple Queue Service (SQS) or Kinesis event source | Fission message queue trigger through Kubernetes Event-driven Autoscaling (KEDA) | Reads messages from the queue or stream and invokes the function once per message, while KEDA scales the consumer. Lambda delivers messages in batches, so review handlers that expect a batch. |

Message queue triggers require KEDA, which you install separately and enable in Fission.

## Prerequisites

Before you begin:

* Deploy a [Kubernetes cluster](https://docs.vultr.com/products/compute/kubernetes/provisioning) running version 1.32 or later with three worker nodes, a default storage class, and support for `LoadBalancer` services.
* [Install and configure kubectl](https://docs.vultr.com/how-to-install-and-use-kubectl-to-manage-a-vke-cluster) to access the cluster.
* Install [Helm 3](https://helm.sh/docs/intro/install/) on the machine that runs the commands.
* Use a Linux workstation with `sudo` privileges to run the commands. For macOS or ARM-based workstations, see the note in [Install the Fission CLI](#install-the-fission-cli).

## Install Fission

Fission ships its custom resource definitions (CRDs) outside the Helm release, so the CRDs and the chart install as separate steps and must reference the same version.

1. Create the namespace that holds the Fission control plane.

    ```console
    $ kubectl create namespace fission
    ```

1. Create the custom resource definitions.

    ```console
    $ kubectl create -k "github.com/fission/fission/crds/v1?ref=v1.27.0"
    ```

    Check the [official Fission GitHub repository](https://github.com/fission/fission/releases) for the latest release.

1. Add the Fission chart repository.

    ```console
    $ helm repo add fission-charts https://fission.github.io/fission-charts/
    ```

1. Refresh the repository index.

    ```console
    $ helm repo update
    ```

1. Install the `fission-all` chart pinned to the same version as the CRDs.

    ```console
    $ helm install --version 1.27.0 --namespace fission fission fission-charts/fission-all \
        --set routerServiceType=LoadBalancer \
        --set internalAuth.enabled=false \
        --set persistence.size=40Gi
    ```

    In the above command:

    * `routerServiceType=LoadBalancer`: Publishes the Fission router on a public load balancer address.
    * `internalAuth.enabled=false`: Disables the token authentication that Fission components use for requests between each other. Keep internal authentication enabled in production clusters, where other workloads share the cluster network.
    * `persistence.size=40Gi`: Sets the volume size of the storage service, which holds uploaded function packages.

    Check the [official fission-all Helm chart](https://artifacthub.io/packages/helm/fission-charts/fission-all) for the latest release.

    > [!NOTE]
    > Set `persistence.size` to at least the minimum volume size supported by your default storage class. The chart requests an 8 GiB volume for the storage service by default, and if the storage class requires a larger minimum size, such as 40 GiB, the persistent volume claim never binds, and the `storagesvc` pod remains in `Pending`. Package uploads and builds depend on that service.

1. Verify that every Fission pod reaches a running state.

    ```console
    $ kubectl get pods -n fission
    ```

    The output shows every pod with a `Running` status.

## Install the Fission CLI

The Fission CLI manages functions, environments, packages, and triggers in your cluster. It reaches the cluster through your `kubeconfig` context, so it works with any cluster that your `kubectl` can access.

1. Download the Fission CLI binary.

    ```console
    $ curl -Lo fission https://github.com/fission/fission/releases/download/v1.27.0/fission-v1.27.0-linux-amd64
    ```

    Check the [Fission releases page](https://github.com/fission/fission/releases) for the latest release, and use the same version for the CLI, the CRDs, and the chart.

    > [!NOTE]
    > The command above downloads the `linux-amd64` build. Download the build that matches your operating system and architecture, for example, `fission-v1.27.0-darwin-arm64` for Apple Silicon Macs, `fission-v1.27.0-darwin-amd64` for Intel Macs, or `fission-v1.27.0-linux-arm64` for ARM-based Linux machines. A build for the wrong platform fails with an `exec format error` when you run it.

1. Make the binary executable.

    ```console
    $ chmod +x fission
    ```

1. Move it into your path.

    ```console
    $ sudo mv fission /usr/local/bin/
    ```

1. Verify that the CLI reaches the cluster.

    ```console
    $ fission version
    ```

    The output reports the installed version of both the client and the server. The two versions match, which confirms that the CLI reads your kubeconfig and can reach the Fission control plane.

## Create an Environment

An environment supplies the language runtime image that your functions execute inside. Fission maintains a pool of warm pods per environment, so the first invocation does not wait for a container to start.

1. Create a Python environment.

    ```console
    $ fission env create --name python --image ghcr.io/fission/python-env
    ```

    The command reports a default pool size of 3.

1. Verify that the environment pods are running.

    ```console
    $ kubectl get pods -n default -l environmentName=python
    ```

    The output shows all 3 pods with a `Running` status.

1. List the environment.

    ```console
    $ fission env list
    ```

    The output lists the `python` environment with its runtime image and a pool size of `3`.

## Deploy Your First Function

A function pairs your handler code with an environment. The Python environment calls a function named `main` in the file you supply, with no arguments, and returns whatever the function returns as the response body.

1. Create the handler file.

    ```console
    $ nano hello.py
    ```

1. Add the following code.

    ```python
    def main():
        return "Hello from Fission\n"
    ```

    Save and close the file.

1. Create the function against the Python environment.

    ```console
    $ fission function create --name hello --env python --code hello.py
    ```

    Fission creates a package that holds your code, then registers the function that references it.

1. Forward the internal router port to your workstation so that you can invoke the function before it has a public route.

    ```console
    $ kubectl port-forward -n fission svc/router-internal 8889:8889 > /dev/null 2>&1 &
    ```

1. Invoke the function directly.

    ```console
    $ curl http://127.0.0.1:8889/fission-function/hello/
    ```

    The function returns `Hello from Fission`.

1. Stop the port forward.

    ```console
    $ kill %1
    ```

## Expose the Function over HTTP

An HTTP trigger registers a route with the Fission router, which the load balancer publishes on a public address. This is the closest equivalent of putting API Gateway in front of a Lambda function.

1. Create the HTTP trigger.

    ```console
    $ fission route create --name hello-route --function hello --url /hello --method GET
    ```

1. Retrieve the external address assigned to the router.

    ```console
    $ kubectl get svc router -n fission
    ```

    The `EXTERNAL-IP` column holds the load balancer address.

1. Call the route. Replace `LOAD_BALANCER_IP` with the `EXTERNAL-IP` value that you retrieved earlier.

    ```console
    $ curl http://LOAD_BALANCER_IP/hello
    ```

    The function returns `Hello from Fission` through the public route.

## Choose an Executor

An executor decides how a function's pods are created, kept warm, and released. Fission ships three: `poolmgr`, `newdeploy`, and `container`, which runs your own image. The first two differ most when traffic stops. `poolmgr`, the default, maintains a pool of warm pods for each environment, so the first request starts quickly, but the pool retains idle capacity even if no traffic arrives. `newdeploy` creates a dedicated deployment for each function and accepts a `minScale` of `0`, which releases every pod when the function goes idle but makes the next request pay a cold start.

1. Switch the function to the `newdeploy` executor with scale to zero enabled.

    ```console
    $ fission fn update --name hello --executortype newdeploy --minscale 0 --maxscale 3
    ```

1. Verify that Fission created the dedicated deployment.

    ```console
    $ kubectl get deploy -n default
    ```

    The output lists a deployment named `newdeploy-hello`, the dedicated deployment for the function, and a deployment named `poolmgr-python`, which holds the environment's warm pool.

1. Call the route to confirm that the function still responds. Replace `LOAD_BALANCER_IP` with the `EXTERNAL-IP` value that you retrieved earlier.

    ```console
    $ curl http://LOAD_BALANCER_IP/hello
    ```

    The function returns `Hello from Fission`.

1. Wait at least five minutes without sending any requests to the function, then check the deployment again.

    ```console
    $ kubectl get deploy -n default
    ```

    The `newdeploy` deployment reports `0/0`, which means that Fission's idle cleanup released the function's pod and its memory back to the cluster. The `poolmgr` deployment stays at `3/3`, because the two executors handle idle capacity differently.

1. Call the route once more to trigger a cold start. Replace `LOAD_BALANCER_IP` with the `EXTERNAL-IP` value that you retrieved earlier.

    ```console
    $ curl http://LOAD_BALANCER_IP/hello
    ```

    Fission creates a pod on demand, specializes it with your code, and returns the response. The cold start takes a few seconds longer than the warm responses you saw earlier.

## Add a Time Trigger

A time trigger invokes a function on a cron schedule, replacing an EventBridge Scheduler rule that points to a Lambda function. The trigger runs inside the cluster and needs no external scheduler.

1. Create a trigger that fires every minute.

    ```console
    $ fission timer create --name hello-timer --function hello --cron "@every 1m"
    ```

    The command prints the current server time and the next invocation time.

1. List the trigger.

    ```console
    $ fission timer list
    ```

    The output lists `hello-timer` with the `@every 1m` schedule, the `hello` function, and a `READY` value of `True`.

1. Wait for the next scheduled run.

    ```console
    $ sleep 75
    ```

    The first invocation fires one full interval after the trigger starts, so a one-minute schedule produces no entry before then.

1. View the timer logs to verify the invocation.

    ```console
    $ kubectl logs -n fission deploy/timer --tail=2
    ```

    The output shows the timer making a request to the `hello` function. Run the command again after another minute if no request appears yet.

    > [!NOTE]
    > A time trigger invokes its function on every tick, so a function using the `newdeploy` executor never stays idle long enough to scale to zero. Delete the time trigger before you test scale-to-zero behavior on the same function.

## Add a Message Queue Trigger

A message queue trigger consumes messages from a broker and invokes a function for each one, which replaces an SQS or Kinesis event source mapping. Fission delegates the scaling decision to KEDA, so install KEDA and a broker before you create the trigger.

### Install KEDA

KEDA watches the queue and scales the connector deployment that reads messages and calls your function.

1. Add the KEDA chart repository.

    ```console
    $ helm repo add kedacore https://kedacore.github.io/charts
    ```

1. Refresh the repository index.

    ```console
    $ helm repo update
    ```

1. Install KEDA into its own namespace.

    ```console
    $ helm install keda kedacore/keda --namespace keda --create-namespace --version 2.20.0
    ```

    Check the [KEDA compatibility](https://fission.io/docs/installation/compatibility/) page to see which KEDA release to use against which Fission release.

1. Verify that the KEDA pods are running.

    ```console
    $ kubectl get pods -n keda
    ```

    The output shows every pod with a `Running` status.

1. Verify that KEDA registered its metrics API with the cluster.

    ```console
    $ kubectl get apiservice v1beta1.external.metrics.k8s.io
    ```

    The `AVAILABLE` column reports `True`, which confirms that KEDA can serve scaling metrics to the cluster.

### Deploy Redis

Redis provides the list that holds incoming messages. A single instance is enough to demonstrate the trigger.

1. Create the manifest file.

    ```console
    $ nano redis.yaml
    ```

1. Add the following configuration.

    ```yaml
    apiVersion: v1
    kind: Namespace
    metadata:
      name: redis
    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: redis
      namespace: redis
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: redis
      template:
        metadata:
          labels:
            app: redis
        spec:
          containers:
          - name: redis
            image: redis:8-alpine
            ports:
            - containerPort: 6379
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: redis
      namespace: redis
    spec:
      selector:
        app: redis
      ports:
      - port: 6379
        targetPort: 6379
    ```

    Save and close the file.

1. Apply the manifest.

    ```console
    $ kubectl apply -f redis.yaml
    ```

1. Verify that the Redis pod is running.

    ```console
    $ kubectl get pods -n redis
    ```

    Run the command again if the pod still reports `ContainerCreating`, because the first start pulls the Redis image.

### Create the Trigger

The trigger binds a Redis list to your function and defines the response list that receives each function result.

1. Create the message queue trigger.

    ```console
    $ fission mqtrigger create --name redis-trigger --function hello \
        --mqtype redis --mqtkind keda \
        --topic request-topic --resptopic response-topic \
        --metadata address=redis.redis.svc.cluster.local:6379 \
        --metadata listName=request-topic \
        --metadata listLength=1
    ```

    > [!NOTE]
    > The KEDA Redis scaler requires both `listName` and `listLength` in its metadata. The `--topic` flag names the queue for Fission, but the KEDA Redis scaler reads the list name from its own metadata and reports `READY: False` without it. Set both to the same value.

1. Verify that KEDA accepted the trigger.

    ```console
    $ kubectl get scaledobject -A
    ```

    A `READY` value of `True` confirms that KEDA connected to Redis and polls the list, so run the command again if the value has not changed yet.

1. Push a message onto the request list.

    ```console
    $ kubectl run redis-cli --rm -it --restart=Never --image=redis:8-alpine -n redis -- \
        redis-cli -h redis -p 6379 LPUSH request-topic '{"msg":"test"}'
    ```

    The command returns `(integer) 1`, which is the new length of the list, and then removes the temporary client pod.

1. Wait about a minute, then read the response list.

    ```console
    $ kubectl run redis-cli --rm -it --restart=Never --image=redis:8-alpine -n redis -- \
        redis-cli -h redis -p 6379 LRANGE response-topic 0 -1
    ```

    The response list contains `Hello from Fission`, which confirms that the message reached the function and that the result returned through the queue.

## Verify the Deployment

Fission provides a health command and a set of list commands that report the state of every object you created. Run them after the deployment is complete to confirm the cluster is in the expected state.

1. Check the health of the Fission services.

    ```console
    $ fission check
    ```

    The command reports the executor, router, storage service, and webhook, and marks each one as running.

1. List the environments.

    ```console
    $ fission env list
    ```

    The output lists the `python` environment.

1. List the functions.

    ```console
    $ fission fn list
    ```

    The output lists the `hello` function with the `newdeploy` executor.

1. List the HTTP triggers.

    ```console
    $ fission route list
    ```

    The output lists `hello-route` with the `GET` method and the `/hello` path.

1. List the time triggers.

    ```console
    $ fission timer list
    ```

    The output lists `hello-timer` with the `@every 1m` schedule.

1. List the message queue triggers.

    ```console
    $ fission mqtrigger list
    ```

    The output lists `redis-trigger` with the `request-topic` and `response-topic` lists.

1. Read the function logs.

    ```console
    $ fission function log --name hello
    ```

    The command prints the runtime log from the function pod, including the server startup and the `specialize` call that loaded your code.

1. Check the function and environment pods.

    ```console
    $ kubectl get pods -n default
    ```

    The output lists the `poolmgr-python` pool pods and a `newdeploy-hello` pod for the function, each with a `Running` status. A `redis-trigger` pod also appears for about five minutes after the queue receives a message, because KEDA scales the connector up to process the message and back to zero once the list stays empty.

## Migrate from AWS Lambda to Fission

This section outlines the strategy for migrating functions from AWS Lambda to Fission. It focuses on the concepts and the tools involved, so the approach stays applicable as both platforms release new versions. Refer to the current [AWS Lambda](https://docs.aws.amazon.com/lambda/) and [Fission documentation](https://fission.io/docs/) for exact commands and options when you plan your migration.

### Assess Your Triggers First

The trigger assessment determines how much of the migration is mechanical and how much requires new architecture. API Gateway routes map onto Fission HTTP triggers that serve the same paths and methods, and EventBridge Scheduler schedules map onto Fission time triggers. EventBridge's six-field cron format ends with a year, while Fission's six-field format starts with seconds, so drop the year, add a leading seconds field such as `0`, or switch to an `@every` interval. Run `fission timetrigger showschedule` to test each converted expression, because Fission fires triggers on the server's clock.

SQS and Kinesis event source mappings map to Fission message queue triggers, which KEDA connects to. Fission's KEDA connectors read from SQS and Kinesis directly, so a function can keep consuming from AWS, or you can move the traffic to a broker that you run, such as Kafka or RabbitMQ. Functions that S3 events, DynamoDB Streams, or EventBridge patterns invoke have no direct Fission trigger, so each one needs a replacement event path, such as an object storage webhook or a database change stream that publishes to your broker.

### Handler Migration

Handler migration adapts each function to how the Fission environment invokes code. Lambda calls a handler with the signature `lambda_handler(event, context)`, while the Fission Python environment calls its entrypoint with no arguments and returns the value as the response body. Rename the handler to `main()`, replace the `event` argument with `request.get_json()` to read the request body through the Flask `request` object, and replace `context.aws_request_id` with the `X-Fission-Request-ID` header. Print `request.headers` in a test function to confirm that your Fission version passes that header to the function.

### Dependency and Package Migration

Lambda layers ship shared dependencies alongside a function, while Fission builds dependencies into the package itself through a builder image that you attach to the environment. Attach a builder such as `ghcr.io/fission/python-builder` with `fission env update --builder`, include a `requirements.txt` file and a build script with the source, and create the package with `fission package create`. The builder installs the dependencies inside the cluster, so the package that reaches the runtime already contains everything that the function imports. Compiled runtimes such as Go follow the same pattern, so you supply source code and the builder compiles it. Fission loads the compiled function as a Go plugin, which must use exactly the same Go toolchain as the runtime, so set the `go` directive in `go.mod` to the Go version of the environment and builder images.

### Configuration and Secrets

Lambda reads configuration from environment variables and permissions from an Identity and Access Management (IAM) execution role, and Fission replaces both with Kubernetes objects. Store configuration in ConfigMaps and Secrets, and attach them with the `--configmap` and `--secret` flags on `fission function create`. Fission mounts each value as a file at `/configs/NAMESPACE/NAME/KEY` or `/secrets/NAMESPACE/NAME/KEY`, so change a function that reads `os.environ` to read those files, or set environment variables through a PodSpec in a spec file. Kubernetes role-based access control (RBAC) rules replace the execution role for access to the cluster API, and access to external cloud APIs needs its own credentials, which you store as Secrets.

### Migration Considerations

The following items require attention during the migration:

* **Event source parity**: Most Lambda event sources are AWS services with no off-AWS equivalent, so the trigger inventory decides the effort. SQS and Kinesis are the exception, because Fission's KEDA connectors read from them directly.
* **Executor choice**: The `poolmgr` executor maintains a warm pool for fast cold starts but incurs idle capacity, while the `newdeploy` executor can scale to zero but incurs a cold start on the next request. Each function uses one executor, so choose the trade-off for each function.
* **Versions and aliases**: Fission has no immutable function versions or aliases like Lambda, so keep versions as separate functions under your own naming convention. An HTTP trigger can split traffic between two functions by weight, and the optional canary feature, which needs Prometheus and `canaryDeployment.enabled`, shifts that weight automatically.
* **Cost model**: Self-hosting favors sustained utilization because the cluster bills regardless of whether functions run, whereas Lambda typically costs less at low or bursty volumes.
* **Upgrade discipline**: CRDs are installed outside the Helm release, and `helm upgrade` does not touch them, so pin the chart version and apply the matching CRDs in the same step whenever you upgrade. The Fission upgrade guide also warns that upgrades cause some downtime.

## Conclusion

You have successfully deployed Fission on a Kubernetes cluster as an alternative to AWS Lambda. You deployed a Python function, exposed it over HTTP, added time and message-queue triggers, and compared the `poolmgr` and `newdeploy` executors. For more information, visit the official [Fission documentation](https://fission.io/docs/).
