From b6b8a1a881302e3d8596ffe20acc6946b008744a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 25 Jun 2026 14:58:19 +0000 Subject: [PATCH] fix: remove archive/ prefix from S3 lifecycle rule to cover root-level objects The archive-to-glacier rule had prefix: "archive/" which caused pre-migration backup files written to the bucket root to be excluded from any transition policy. Removing the prefix makes the rule apply to all objects in the bucket, ensuring root-level dump files also transition to Glacier after 30 days. Closes #4 --- lib/forgejo-stack.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/forgejo-stack.ts b/lib/forgejo-stack.ts index 897ffd2..83b7b3c 100644 --- a/lib/forgejo-stack.ts +++ b/lib/forgejo-stack.ts @@ -75,7 +75,6 @@ export class ForgejoStack extends cdk.Stack { lifecycleRules: [ { id: "archive-to-glacier", - prefix: "archive/", transitions: [ { storageClass: s3.StorageClass.GLACIER, transitionAfter: cdk.Duration.days(30) }, ],