Scope Gateway Target names to their parent Gateway
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ả
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>Idand new<GatewayName>Target<TargetName>Idoutputs. - 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-constructsfor 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws/agentcore-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
aws/agentcore-cli#2395 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
aws/agentcore-cli#2392 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
aws/agentcore-cli#2267 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws/agentcore-cli#2258 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
aws/agentcore-cli#2176 ·
Tất cả issue của aws/agentcore-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
bcgov/bc-wallet-mobile#4761 · 1 bình luận ·
-
external-issue to-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100