feat(typescript): add 3 Bedrock CDK examples (durable, streaming, S3 Vectors)#1266
Open
NithinChandranR-AWS wants to merge 1 commit intoaws-samples:mainfrom
Conversation
Add three new TypeScript CDK examples demonstrating re:Invent 2025 serverless launches integrated with Amazon Bedrock: - lambda-durable-bedrock: Multi-step AI workflow with durable functions - apigw-streaming-lambda-bedrock: REST API response streaming - s3-vectors-lambda-bedrock: RAG pipeline with S3 Vectors All examples use least-privilege IAM with scoped Bedrock permissions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds three new TypeScript CDK examples demonstrating re:Invent 2025 serverless launches integrated with Amazon Bedrock. These are cross-posted from aws-samples/serverless-patterns (PRs #3053, #3054, #3055) and adapted to the aws-cdk-examples standalone format.
1.
typescript/lambda-durable-bedrock— Durable Functions + BedrockMulti-step AI content generation with automatic checkpointing. If step 3 fails, execution resumes from step 3 — not step 1. No duplicate Bedrock charges.
@aws/durable-execution-sdk-js+DurableConfigescape hatchnodejs24.xruntime2.
typescript/apigw-streaming-lambda-bedrock— REST API Streaming + BedrockStreams Bedrock tokens via Server-Sent Events through standard REST API Gateway. First token arrives in <500ms vs 5-15s buffered wait.
ResponseTransferMode: STREAMin CfnIntegration +streamifyResponse()wrapper3.
typescript/s3-vectors-lambda-bedrock— S3 Vectors RAG PipelineRAG pipeline using S3 Vectors for vector storage at S3 pricing. No OpenSearch/Pinecone/pgvector needed.
@aws-sdk/client-s3vectors(not in Lambda runtime)All examples include:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.