mirror of
https://github.com/Sea-Haven-Industries/forgejo.git
synced 2026-10-07 07:28:53 +00:00
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:
parent
b548f28854
commit
b6b8a1a881
1 changed files with 0 additions and 1 deletions
|
|
@ -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) },
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue