Skip to content

feat(schema): add ap-south-2 (HYD) and us-west-1 (SFO) to region allowlist - #2132

Open
jariy17 wants to merge 1 commit into
mainfrom
feat/new-region-allowlist
Open

feat(schema): add ap-south-2 (HYD) and us-west-1 (SFO) to region allowlist#2132
jariy17 wants to merge 1 commit into
mainfrom
feat/new-region-allowlist

Conversation

@jariy17

@jariy17 jariy17 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

Add ap-south-2 (HYD) and us-west-1 (SFO) to the AgentCore region allowlist so the CLI accepts these launch regions in validate/deploy and the TUI region picker. The other four launch regions (ap-southeast-7, ap-southeast-5, eu-south-1, eu-south-2) are already present.

Why

AgentCoreRegionSchema is the front-door validation for deployment-target regions. Without these two entries the CLI rejects HYD/SFO before deploy. The partition/ARN/endpoint layer (src/cli/aws/partition.ts) is already region-agnostic (SDK-derived) and needs no change.

Must land with the CDK counterpart — aws/agentcore-l3-cdk-constructs#343 — which gates synth on the same enum.

Changes (per AGENTS.md "Adding a New Region")

  • src/schema/schemas/aws-targets.tsAgentCoreRegionSchema enum +2
  • src/schema/llm-compacted/aws-targets.tsAgentCoreRegion type union +2 (kept in sync)
  • src/schema/schemas/__tests__/aws-targets.test.ts — options list +2; updated the negative assertion (us-west-1 is now valid → uses me-central-1)

BEDROCK_REGIONS (Bedrock Agent import only) intentionally unchanged — separate scope from AgentCore deployment regions.

Verification

  • npm run test:unit — 429 files / 6153 tests pass; typecheck + build pass
  • agentcore validate on real configs: all 6 launch regions pass; unsupported control (me-central-1) correctly rejected
  • Live agentcore deploy to a CloudFormation stack (us-west-2, patched CLI) verified end to end

…wlist

Enable AgentCore CLI in the new launch regions. Extends AgentCoreRegionSchema
and the llm-compacted type union; updates the negative-region assertion since
us-west-1 is now valid.
@jariy17
jariy17 requested a review from a team August 27, 2026 20:32
@github-actions github-actions Bot added the size/xs PR size: XS label Aug 27, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added agentcore-harness-reviewing AgentCore Harness review in progress claude-security-reviewing Claude Code /security-review in progress labels Aug 27, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.28.0.tgz

How to install

gh release download pr-2132-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.28.0.tgz

@agentcore-devx-automation agentcore-devx-automation Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AgentCore Harness Review

Verdict: Looks good

Small, well-scoped data change. The zod enum in src/schema/schemas/aws-targets.ts, the read-only mirror in src/schema/llm-compacted/aws-targets.ts, and the test in src/schema/schemas/__tests__/aws-targets.test.ts are all updated in lockstep, and the rejection case was properly swapped from us-west-1 to me-central-1. No telemetry or mocking concerns apply here.

One non-blocking sanity check for the author: the AWS regional services table (api.regional-table.region-services.aws.a2z.com/index.json) currently lists Amazon Bedrock AgentCore in 20 regions, and neither us-west-1 nor ap-south-2 are in that set. The file comment says to keep this list in sync with the AgentCore regions doc — please confirm these two regions are actually launched/supported for AgentCore before merging (or link to the internal source of truth in the PR description). If you have internal confirmation this is a coming/just-launched expansion, ignore this.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 41.08% 15599 / 37966
🔵 Statements 40.33% 16629 / 41229
🔵 Functions 35.13% 2673 / 7608
🔵 Branches 34.23% 10383 / 30329
Generated in workflow #4437 for commit 8ce9081 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant