Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Scope Gateway Target names to their parent Gateway

Đang mở
#2,083 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, typescript
Lĩnh vực
cli, infrastructure

Hướng nghiên cứu

Bắt đầu với CLI schema, L3 synthesis, output-parser, deployment-state mapping và Target validation dựa trên project được nêu trong issue. Theo dõi cách tên Gateway và Target trở thành logical ID, cũng như cách các legacy output được liên kết với Gateways. Được xem là hoàn tất khi các tên Target trùng lặp hoạt động giữa các Gateway, vẫn bị từ chối trong cùng một Gateway, cả hai định dạng output đều được parse và các test được liệt kê bao quát tính tương thích.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Description

Gateway Target names should be unique within their parent Gateway, matching the
AgentCore service contract, rather than unique across an entire CLI project.

Today the CLI effectively requires project-global Target names because the L3
construct emits Target outputs using only the Target name:

GatewayTarget<TargetName>Id

The old CLI's CloudFormation output parser also expects that format. As a result,
two Gateways cannot both have a naturally named Target such as search, even
though the service permits it.

Change the L3 output contract to include the parent Gateway:

<GatewayName>Target<TargetName>Id

The CLI should enforce uniqueness only inside each Gateway. During the
transition, the old CLI output parser should accept both the existing
Target-only format and the new Gateway-qualified format so existing deployed
stacks continue to work.

This was intentionally deferred from aws/agentcore-cli#2028 to keep that PR
compatible with the currently published L3 output contract.

Acceptance Criteria
  • Two different Gateways in one project can each contain a Target with the same name.
  • Duplicate Target names within one Gateway are still rejected.
  • L3 Target output logical IDs and export names include both Gateway and Target names.
  • The old CLI CloudFormation output parser accepts both legacy GatewayTarget<TargetName>Id and new <GatewayName>Target<TargetName>Id outputs.
  • Output parsing associates each Target ID with the correct parent Gateway when names are duplicated.
  • Existing projects and stacks using legacy output names continue to deploy and update.
  • CLI schema, command, L3 synthesis, output-parser, and deployment-state tests cover cross-Gateway duplicate names.
  • The project-based refactor removes its temporary project-global Target-name validation after the compatible L3 version is published.
Additional Context

This requires coordinated changes in:

  • aws/agentcore-l3-cdk-constructs for Gateway-qualified outputs;
  • the old CLI output parser and deployment-state mapping;
  • the project-based refactor's Target uniqueness validation.
Ngôn ngữ chính
TypeScript
Star
291
Fork
96
Merge trung bình
21 giờ 31 phút
Pull request đã merge (30 ngày)
217

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/agentcore-cli

Tất cả issue của aws/agentcore-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.