fix: extend S3 lifecycle rule to cover root-level backup objects across all stacks (#36)
Some checks failed
Deploy / deploy (push) Has been cancelled

* Initial plan

* 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

* fix: remove archive/ prefix from lifecycle rule in forgejo-replica-stack.ts

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Copilot 2026-06-25 11:22:12 -04:00 • committed by GitHub
parent bd90e90d7c
commit 36c5e17ab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 2 deletions

View file

@ -21,7 +21,6 @@ export class ForgejoReplicaStack extends cdk.Stack {
lifecycleRules: [ lifecycleRules: [
{ {
id: "archive-to-glacier", id: "archive-to-glacier",
prefix: "archive/",
transitions: [ transitions: [
{ {
storageClass: s3.StorageClass.GLACIER, storageClass: s3.StorageClass.GLACIER,

View file

@ -75,7 +75,6 @@ export class ForgejoStack extends cdk.Stack {
lifecycleRules: [ lifecycleRules: [
{ {
id: "archive-to-glacier", id: "archive-to-glacier",
prefix: "archive/",
transitions: [ transitions: [
{ storageClass: s3.StorageClass.GLACIER, transitionAfter: cdk.Duration.days(30) }, { storageClass: s3.StorageClass.GLACIER, transitionAfter: cdk.Duration.days(30) },
], ],