Amazon Bedrock AgentCore Memory now has TTL for long-term memory!
Hi everyone, it's Shii-chan! I found a nice update for AgentCore Memory, so let's take a look.
AWS What's NewWhat was announced?
AWS announced in What's New that Amazon Bedrock AgentCore Memory now supports a time-to-live (TTL) on long-term memory records. Once the retention period you define passes, the records are deleted automatically.
The story so far
Until now, long-term memory records did not expire by default. Stale information stuck around, which made it harder to meet data-retention requirements or keep storage growth in check.
What changes
With TTL you can:
- Delete records automatically after a period that matches your data-retention requirements
- Control storage growth
- Let stale insights age out of a memory over time
For teams running agent memory for a long time, that means less manual cleanup!
Dive Deep
Details from the announcement:
- You can configure retention on the resource or on specific records
- Configuring or removing a TTL requires the new bedrock-agentcore:UpdateMemoryRecordExpirySpecification permission
- Because the permission is separate, you get independent control over who can set record retention
- It's available in all AWS Regions where Amazon Bedrock AgentCore Memory is supported
For the setup steps, see 'Set a time-to-live for long-term memory records' in the Amazon Bedrock AgentCore Developer Guide.
Wrap-up
- Long-term memory records can have a TTL and are deleted automatically after it
- The default is still no expiry
- Retention can be set per resource or per record
- Changing it needs a dedicated IAM permission
A good fit for developers and admins who want agent memory to follow data-retention rules!