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.
Basic usage
Section titled “Basic usage”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(),