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

オープン
#2,804 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
339
フォーク
129
平均マージ
19時間 21分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。