fix(cdk): lambda-microvm grants hardcode the us. inference-profile prefix instead of bedrockGeoRegion
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- aws, typescript
- Lĩnh vực
- infrastructure
Hướng nghiên cứu
Bắt đầu từ cdk/src/constructs/lambda-microvm-compute.ts, nơi quyền inference-profile đang gán cứng tiền tố us. trong resourceName. So sánh với cdk/src/constructs/ecs-agent-cluster.ts, file này lấy geo từ resolveBedrockGeoRegion, rồi chuyển quyền sang inferenceProfileId(geo, modelId). Thêm một test.each cho 'global' và 'eu', theo mẫu cdk/test/constructs/ecs-agent-cluster.test.ts. Hoàn thành khi synth global cấp quyền inference-profile/global.* mà không có ARN us.*, và đầu ra mặc định cho us không thay đổi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
cdk/src/constructs/lambda-microvm-compute.ts builds the Bedrock inference-profile grant ARN with a hardcoded prefix:
resource: 'inference-profile',
resourceName: `us.${modelId}`,
The AgentCore runtime (stacks/agent.ts) and ECS (constructs/ecs-agent-cluster.ts) derive the prefix from resolveBedrockGeoRegion and inject the same geo into ANTHROPIC_MODEL / ANTHROPIC_DEFAULT_HAIKU_MODEL. The Lambda MicroVM backend therefore grants us.* profiles while the agent is told to invoke <geo>.*.
Impact
Any bedrockGeoRegion other than us (the shipped cdk.json sets global) on the lambda-microvm backend fails every task at turn 0 with AccessDenied — the exact grant/env drift bedrock-model-constants.ts documents as the failure mode to avoid. Pre-existing; surfaced during review of #954.
Fix
- Import
resolveBedrockGeoRegion(or acceptbedrockGeoRegionas a prop, matching ECS) and useinferenceProfileId(geo, modelId)for the ARN. - Add a
test.each(['global', 'eu'])case mirroringcdk/test/constructs/ecs-agent-cluster.test.ts("bedrockGeoRegion=%s injects both models…") that asserts the MicroVM role'sinference-profile/<geo>.<model>ARNs and the absence ofus.ones.
Acceptance
bedrockGeoRegion=globalsynth grantsinference-profile/global.*on the MicroVM execution role and nous.*.- Existing
usdefault unchanged.
- Ngôn ngữ chính
- TypeScript
- Star
- 170
- Fork
- 52
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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-samples/sample-autonomous-cloud-coding-agents
-
cdk: support Docker-compatible engines such as Finch (clean:disk hard-codes docker)Có thể đã có người làm @alvarohare đã nhận 10 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#969 · 1 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws-samples/sample-autonomous-cloud-coding-agents#968 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation P2 security
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 74/100
aws-samples/sample-autonomous-cloud-coding-agents#793 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs: How to clear previously set attributes for a blueprintCó thể làm lại được @rkumarus-aws đã nhận 68 ngày trước và không có pull request nào đang mở. Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
aws-samples/sample-autonomous-cloud-coding-agents#767 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
aws-samples/sample-autonomous-cloud-coding-agents#749 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws-samples/sample-autonomous-cloud-coding-agents
Issue tương tự
-
FR: Support CJK brackets, symbols and full-width markers in footnoteHeuristics (EBPAJ support)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
readest/readest#7413 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
content triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eliasstravik/herdr-projects#788 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Ability to edit tagsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày