Skip to main content

v1.5 — Memory Store + New Pages + Container Cost

· 3 min read

AgentCore Memory Store introduced for 365-day per-user conversation history retention. New EBS, MSK, OpenSearch pages and ECS/EKS container cost analysis added.

:::tip Key Additions Memory Store (365 days) · 4 New Pages · ECS/EKS Container Cost · OpenCost Integration · 3 Hardcoded Values Removed :::

AgentCore Memory Store​

Introduced a Memory Store that retains per-user conversation history for 365 days. Storage/search logic is managed in src/lib/agentcore-memory.ts.

ItemDescription
Retention Period365 days (eventExpiryDuration)
User IsolationEmail extracted from Cognito JWT (src/lib/auth-utils.ts)
Stored DataQuestion, summary, route, tools used, response time
Setup Script06e-setup-agentcore-memory.sh
Config FilememoryId, memoryName in data/config.json

:::warning Memory Naming Rules Memory names cannot use hyphens (-). Only underscores (_) are allowed. Correct: awsops_memory / Incorrect: awsops-memory :::

AgentCore Page Integration:

  • 6 StatsCards: total calls, average response time, per-gateway call ratio, per-model token usage
  • Conversation history search: keyword, date range, per-route filters

AI Page Integration:

  • Bottom toggle panel for viewing conversation history
  • Ability to reference previous question/response context

New Pages (4)​

PagePathQuery FileKey Features
EBS/ebsqueries/ebs.tsVolumes/snapshots, encryption, EC2 attachments, idle volume detection
MSK/mskqueries/msk.tsKafka clusters, broker node metrics (CPU/Memory/Network), KRaft mode
OpenSearch/opensearchqueries/opensearch.tsDomains, N2N/At-Rest encryption, VPC configuration, cluster status
Resource Inventory/inventoryresource-inventory.tsQuantity trends for 18 resource types (snapshot-based, zero additional queries)

:::info Steampipe JSONB Notes

  • MSK: provisioned column is JSONB containing broker count, storage size, etc.
  • OpenSearch: Check the enabled field within the encryption_at_rest_options JSONB
  • Always verify column names via information_schema.columns before writing queries :::

Container Cost Analysis​

Added 2 pages and APIs for analyzing ECS and EKS container costs.

ItemECS (/container-cost)EKS (/eks-container-cost)
Data SourceCloudWatch Container InsightsOpenCost API
FallbackNoneRequest-based calculation
Cost CalculationFargate vCPU/GB pricing appliedPod CPU/Memory allocation cost
API Route/api/container-cost/api/eks-container-cost
Setup-06f-setup-opencost.sh (Prometheus + OpenCost)

AI Routing Improvements​

ItemBeforeAfter
AgentCore ConfigHardcoded in codeARN read from data/config.json
Tool Usage DisplayNoneKeyword matching infers MCP tools → UI badges
Multi-Route FailureTotal failureBedrock Direct fallback
Timeout60s90s

:::info Tool Usage Inference AgentCore returns only final text (no tool_call tags). The extractUsedTools() function matches keywords in the response content to infer which MCP tools were used and displays them as badges in the UI. :::

Security Enhancements​

IssueFix
Sign OutHttpOnly cookie server-side API deletion (POST /api/auth)
Hardcoded #1Steampipe password → dynamic lookup
Hardcoded #2Code Interpreter ID → data/config.json
Hardcoded #3Gateway URL → data/config.json