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

Offen
#2,804 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
aws, typescript
Bereich
cli, infrastructure

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
339
Forks
129
Ø Merge
19 Std. 21 Min.
Gemergte PRs (30 T.)
125

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus aws/agentcore-cli

Alle Issues in aws/agentcore-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.