mirror of
https://github.com/Sea-Haven-Industries/forgejo.git
synced 2026-09-30 15:33:11 +00:00
Implements a fully compliant 3-2-1 backup architecture: - Copy 1 (live): Harden existing EBS snapshots to 30-day retention - Copy 2 (near-site): S3 cross-region replication to us-west-2 with Object Lock (governance 90d) and versioning - Copy 3 (offsite): GCS bucket in dedicated seahaven-backups GCP project with 2-year irreversible retention lock Also adds a verification Lambda that checks all 3 locations daily and runs monthly restore tests with SQLite integrity checks.
17 lines
508 B
JavaScript
17 lines
508 B
JavaScript
#!/usr/bin/env node
|
|
import "source-map-support/register";
|
|
import * as cdk from "aws-cdk-lib";
|
|
import { ForgejoStack } from "../lib/forgejo-stack";
|
|
import { ForgejoReplicaStack } from "../lib/forgejo-replica-stack";
|
|
|
|
const app = new cdk.App();
|
|
|
|
new ForgejoReplicaStack(app, "forgejo-replica", {
|
|
stackName: "forgejo-replica",
|
|
env: { account: "328440206208", region: "us-west-2" },
|
|
});
|
|
|
|
new ForgejoStack(app, "forgejo", {
|
|
stackName: "forgejo",
|
|
env: { account: "328440206208", region: "us-east-1" },
|
|
});
|