Skip to content

New pattern - lambda-ruby4-bedrock-cdk#3098

Open
NithinChandranR-AWS wants to merge 3 commits intoaws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-lambda-ruby4-bedrock-cdk
Open

New pattern - lambda-ruby4-bedrock-cdk#3098
NithinChandranR-AWS wants to merge 3 commits intoaws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-lambda-ruby4-bedrock-cdk

Conversation

@NithinChandranR-AWS
Copy link
Copy Markdown
Contributor

Description

First pattern for the AWS Lambda Ruby 4.0 runtime (launched April 30, 2026) with Amazon Bedrock integration.

What it does

  • Ruby 4.0 Lambda on ARM64 (Graviton) invokes Bedrock Claude Sonnet
  • JSON structured logging enabled (new in Ruby 4.0 runtime)
  • Documents cross-region inference profile IAM requirement

Testing

Deployed and tested on live AWS account. Ruby 4.0.2 runtime confirmed, Bedrock response received successfully.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… pattern

Deploy an Amazon Bedrock Agent powered by OpenAI GPT OSS model with
a Lambda action group for tool use (weather + time). First pattern
combining Bedrock Agents with OpenAI models on Bedrock.
The InvokeAgent API returns a streaming response that the AWS CLI
does not support. Replaced with Python SDK snippet that correctly
handles the event stream.
First pattern for the April 2026 Ruby 4.0 Lambda runtime with Bedrock
integration. Demonstrates JSON structured logging, ARM64 architecture,
and documents cross-region inference profile IAM requirement.

Deployed and tested on live AWS account.
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