Skip to content

feat: AWS Lambda deployment#223

Merged
chrisraygill merged 6 commits intogenkit-ai:mainfrom
xavidop:xavier/aws-lambda
Mar 30, 2026
Merged

feat: AWS Lambda deployment#223
chrisraygill merged 6 commits intogenkit-ai:mainfrom
xavidop:xavier/aws-lambda

Conversation

@xavidop
Copy link
Copy Markdown
Contributor

@xavidop xavidop commented Feb 16, 2026

No description provided.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @xavidop, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces robust support for deploying Genkit flows to AWS Lambda. It provides a new documentation page with detailed instructions and examples, along with a dedicated helper function (onCallGenkit) within the genkitx-aws-bedrock plugin. This enhancement allows developers to easily integrate Genkit flows into serverless AWS environments, including features like response streaming and flexible authentication mechanisms, thereby expanding deployment options for Genkit applications.

Highlights

  • New AWS Lambda Deployment Guide: A comprehensive documentation page has been added, detailing how to deploy Genkit flows as AWS Lambda functions using the genkitx-aws-bedrock plugin.
  • onCallGenkit Helper Function: The genkitx-aws-bedrock plugin now includes an onCallGenkit helper function, simplifying the process of exporting Genkit flows as Lambda handlers, similar to Firebase Functions' onCallGenkit.
  • Response Streaming Support: The onCallGenkit function supports response streaming when streaming: true is set, enabling real incremental streaming via Lambda Function URLs, compatible with streamFlow from genkit/beta/client.
  • Configurable Lambda Handlers: The onCallGenkit function now accepts configuration options for CORS, debug logging, custom error handling, and context providers for authentication.
  • Built-in Authentication Context Providers: New context provider helpers are introduced, including allowAll, requireHeader, requireApiKey, requireBearerToken, allOf, and anyOf, to manage authentication for Lambda endpoints.
  • Sidebar Navigation Update: The documentation sidebar has been updated to include a link to the new 'Deploy With AWS Lambda' guide under the deployment section.
Changelog
  • src/content/docs/docs/deployment/aws-lambda.mdx
    • Added new documentation for deploying Genkit flows as AWS Lambda functions.
  • src/sidebar.ts
    • Updated the deployment section of the sidebar to include the new AWS Lambda guide.
Activity
  • No activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces documentation for deploying Genkit flows to AWS Lambda. The new documentation page is comprehensive, covering basic usage, streaming, configuration options, and authentication patterns. The changes are well-structured and clear. I've added a couple of minor suggestions to improve code examples and formatting for better clarity and adherence to best practices.

Copy link
Copy Markdown
Collaborator

@i14h i14h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only one small nit

@xavidop xavidop requested a review from i14h February 21, 2026 08:29
@i14h
Copy link
Copy Markdown
Collaborator

i14h commented Mar 17, 2026

/gcbrun

@chrisraygill chrisraygill merged commit 06b0907 into genkit-ai:main Mar 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants