eventExpiryDuration minimum is still 7 in @aws/agentcore-cdk

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
62/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
cli, infrastructure

Hướng nghiên cứu

Reproduce with the three agentcore commands in the report; the first synth error comes from MemorySchema in @aws/agentcore-cdk 1.0.3, where .min(7) should match the harness schema's .min(3). The second gate is MEMORY_EXPIRATION_DAYS_MIN in the aws-cdk-lib Memory L2 construct, adopted in 1.0.0, so check how the construct is instantiated and whether it needs an explicit override or a dependency bump. Done means agentcore deploy creates a memory with eventExpiryDuration 3, with a test covering the boundary.

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

Mô tả

bug
Description

agentcore add memory --event-expiry-duration 3 works, but agentcore deploy fails at synth.
#956 fixed only the CLI schema. Two checks still enforce 7:

  1. @aws/agentcore-cdk 1.0.3 MemorySchema: .min(7). Its harness schema uses .min(3).
  2. aws-cdk-lib 2.277.0 Memory construct: MEMORY_EXPIRATION_DAYS_MIN=7. It applies since @aws/agentcore-cdk 1.0.0, which switched to the L2 Memory.

CloudFormation already allows 3. With both checks patched locally, agentcore deploy creates a memory with eventExpiryDuration 3.

Steps to Reproduce
agentcore create --name ExpiryRepro --template empty && cd ExpiryRepro
agentcore add memory --name ExpiryMin3 --event-expiry-duration 3
agentcore deploy
Expected Behavior

Synth accepts 3, and deploy creates the memory.

Actual Behavior
memories[0].eventExpiryDuration: Too small: expected number to be >=7

With only the schema patched, synth fails with "Memory expiration days must be between 7 and 365".

CLI Version

1.0.3

Operating System

macOS

Additional Context

Related: #744, #956.

Ngôn ngữ chính
TypeScript
Star
339
Fork
129
Merge trung bình
19 giờ 21 phút
Pull request đã merge (30 ngày)
125

Chuẩn bị môi trường

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.