feat(region): add ap-southeast-5/7, eu-south-1/2 to AgentCore regions#1722
Conversation
AgentCore launched in 4 new Regions: Bangkok (ap-southeast-7), Malaysia (ap-southeast-5), Milan (eu-south-1), and Spain (eu-south-2). Add them to AgentCoreRegionSchema so region detection and deployment target validation accept them.
|
Claude Security Review: no high-confidence findings. (run) |
Package TarballHow to installgh release download pr-1722-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.23.0.tgz |
agentcore-cli-automation
left a comment
There was a problem hiding this comment.
Thanks for adding these — the region set matches the official AgentCore supported regions doc (Bangkok = ap-southeast-7 corresponds to "Asia Pacific (Thailand)", and Malaysia/Milan/Spain are all listed there too).
One blocker before merging: the LLM-compacted schema at src/schema/llm-compacted/aws-targets.ts is a manually-maintained mirror of AgentCoreRegionSchema and wasn't updated. Per src/schema/llm-compacted/AGENTS.md, this file must stay in sync with the Zod schema — otherwise AI coding assistants reading agentcore/.llm-context/ after agentcore init will still think these 4 regions are unsupported and generate invalid configs (or refuse to write them). The prior region-addition PR (#833) by the same author updated both files together, so this looks like an oversight.
Separately (out of scope, just flagging): aws/agentcore-l3-cdk-constructs maintains its own copy of AgentCoreRegionSchema at src/schema/schemas/aws-targets.ts + src/schema/llm-compacted/aws-targets.ts. Those will need a matching PR before the new regions actually work end-to-end via agentcore create, since the vended CDK project uses the constructs' schema to validate deployment targets at synth time.
| 'eu-north-1', | ||
| 'eu-south-1', | ||
| 'eu-south-2', | ||
| 'eu-west-1', |
There was a problem hiding this comment.
The sibling LLM-compacted mirror src/schema/llm-compacted/aws-targets.ts needs the same 4 additions. Per src/schema/llm-compacted/AGENTS.md:
When Zod schemas in
schemas/are updated, manually update the corresponding file here
|aws-targets.ts|schemas/aws-targets.ts|
That file is embedded as text at build time and written to agentcore/.llm-context/ during agentcore init — it's what AI coding assistants read when editing agentcore/aws-targets.json. If left as-is, agents will treat ap-southeast-5/7 and eu-south-1/2 as invalid even though the Zod validator now accepts them.
Please add the same 4 entries to the AgentCoreRegion union in that file (alphabetical order, matching the placement here).
What
Add the 4 newly-launched AgentCore Regions to
AgentCoreRegionSchema:ap-southeast-7ap-southeast-5eu-south-1eu-south-2Why
AgentCore is now GA in these 4 Regions with runtime, identity/access control, policy, gateway, built-in tools, and observability. The CLI's
AgentCoreRegionSchemais a hardz.enumallowlist and is the single source of truth for region detection (detectRegion) and deployment-target validation — so until these are added, the CLI rejects them as unsupported.Changes
AgentCoreRegionSchema(src/schema/schemas/aws-targets.ts)enumerates all supported regionsunit test to matchTesting
vitest run src/schema/schemas/__tests__/aws-targets.test.ts→ 22 passed. Lint, prettier, and typecheck pass via pre-commit hooks.