Skip to content

Deploy with AWS Lambda

This plugin includes an onCallGenkit helper function (similar to Firebase Functions’ onCallGenkit) that makes it easy to deploy Genkit Flows as AWS Lambda functions.

import { genkit, z } from 'genkit';
import { awsBedrock, amazonNovaProV1, onCallGenkit } from 'genkitx-aws-bedrock';
const ai = genkit({
plugins: [awsBedrock()],
model: amazonNovaProV1(),
});
const myFlow = ai.defineFlow(
{
name: 'myFlow',
inputSchema: z.string(),