Repository navigation
Conversation
… not available AgentCore Memory is not available in eu-south-1, ap-southeast-5, and ap-southeast-7. A template with memory now drops its default memory in these regions, the same as in China regions. - Add NO_MEMORY_REGIONS and supportsMemory(region) to core/partition. - agentcore create uses supportsMemory to drop the default memory. - agentcore add runtime uses it for the target regions, or for the resolved region when the project has no target. - The note names the region. China keeps its current message.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## box-integration #2960 +/- ##
================================================
Coverage 96.87% 96.87%
================================================
Files 774 774
Lines 68744 68769 +25
================================================
+ Hits 66593 66618 +25
Misses 2151 2151 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
AgentCore Memory is not available in
eu-south-1,ap-southeast-5, andap-southeast-7. Before this change, a template with memory (for exampleagent-python-strands-box) added its default memory in these regions, and the deploy could not provision it.Now the CLI drops the default memory in these regions, the same as it already does in China regions.
agentcore createdrops the default memory when the region has no Memory.agentcore add runtimedrops it when a deployment target is in such a region. When the project has no target yet, the CLI's resolved region is used.AgentCore Memory is not available in eu-south-1; scaffolding without the default memory. China keeps its current message.The rendered agent code keeps the memory module, which does nothing when no memory is configured. So a user can add a memory later with no code change.
Changes
src/core/partition.ts: addNO_MEMORY_REGIONSandsupportsMemory(region). To support a new region, remove it from the set.src/handlers/project/create/region.ts:stripCreateRegionUnavailableDefaultsusessupportsMemory.src/core/project/manager.tsx: move the default-memory drop out of the China-only block inaddResource, and usesupportsMemoryfor all project regions. AddmemoryStrippedMessage(region).Not in scope
An explicit
agentcore add memoryin these regions is not blocked. Only the automatic default is removed.Testing
supportsMemory,stripCreateRegionUnavailableDefaults, and theadd runtimepath (target region and resolved region, and a region with Memory).bun test src/core/partition.test.ts src/core/project src/handlers/project: 3543 pass, 3 fail. The 3 failures are the "the box on PATH" tests. They call the localboxbinary (0.3.1), which does not have the flags they need. This change does not touch that code.bun run typecheckandoxlintpass.AWS_REGION=eu-south-1 agentcore create --template agent-python-strands-boxmakes a project with no memory and prints the note. Withus-east-1, the project still hasagentMemory.