Skip to content

New serverless pattern - agentcore-memory-cdk#3159

Open
NithinChandranR-AWS wants to merge 1 commit into
aws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-agentcore-memory-cdk
Open

New serverless pattern - agentcore-memory-cdk#3159
NithinChandranR-AWS wants to merge 1 commit into
aws-samples:mainfrom
NithinChandranR-AWS:NithinChandranR-AWS-feature-agentcore-memory-cdk

Conversation

@NithinChandranR-AWS

Copy link
Copy Markdown
Contributor

Description

Amazon Bedrock AgentCore Memory with AWS Lambda. Stores conversation events and retrieves memory records via semantic search, enabling AI agents to maintain persistent context across sessions.

Architecture

AWS Lambda → Amazon Bedrock AgentCore Memory (store events / retrieve records)

Deployed and tested

  • Stack deploys successfully in us-east-1
  • store action: creates conversation events (user + assistant messages)
  • retrieve action: queries long-term memory via semantic search
  • Uses built-in semantic extraction strategy

What makes this different

  • First pattern using AgentCore Memory L2 CDK construct
  • Zero infrastructure for persistent agent memory
  • Async extraction: short-term events automatically become long-term memory records

Deploy Amazon Bedrock AgentCore Memory with an AWS Lambda function that
stores conversations, retrieves relevant context via semantic search,
and generates personalized responses using Amazon Bedrock.

Two-step composition: Memory provides user context recall, Bedrock
provides reasoning and personalization. Neither works alone for this
use case — memory without inference is just storage, inference without
memory has no personalization.
@NithinChandranR-AWS NithinChandranR-AWS force-pushed the NithinChandranR-AWS-feature-agentcore-memory-cdk branch from 58ad413 to 9228f8d Compare June 24, 2026 11:44
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