mirror of
https://github.com/Sea-Haven-Industries/forgejo.git
synced 2026-09-30 01:53:11 +00:00
fix: extend S3 lifecycle rule to cover root-level backup objects across all stacks (#36)
Some checks failed
Deploy / deploy (push) Has been cancelled
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:
parent
bd90e90d7c
commit
36c5e17ab8
2 changed files with 0 additions and 2 deletions
|
|
@ -21,7 +21,6 @@ export class ForgejoReplicaStack extends cdk.Stack {
|
|||
lifecycleRules: [
|
||||
{
|
||||
id: "archive-to-glacier",
|
||||
prefix: "archive/",
|
||||
transitions: [
|
||||
{
|
||||
storageClass: s3.StorageClass.GLACIER,
|
||||
|
|
|
|||
|
|
@ -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) },
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue