Compare commits

...

2 commits

Author SHA1 Message Date
copilot-swe-agent[bot]
581ef387ca
fix: remove archive/ prefix from lifecycle rule in forgejo-replica-stack.ts 2026-06-25 15:09:53 +00:00
copilot-swe-agent[bot]
b6b8a1a881
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
2026-06-25 14:58:19 +00:00
2 changed files with 0 additions and 2 deletions

View file

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

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