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
This commit is contained in:
copilot-swe-agent[bot] 2026-06-25 14:58:19 +00:00 • committed by GitHub
parent b548f28854
commit b6b8a1a881
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) },
],