{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Backups — S3 / MinIO",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Nightly snapshot",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "snapshot": "ledger-2026-07-12",
          "rows": 8123
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "put",
      "type": "storage.s3",
      "label": "Upload snapshot",
      "category": "io",
      "config": {
        "credentialId": "",
        "operation": "putObject",
        "endpoint": "http://127.0.0.1:9000",
        "region": "us-east-1",
        "bucket": "backups",
        "key": "ledger/2026-07-12.json",
        "accessKeyId": "flowdromedemo",
        "secretAccessKey": "flowdromedemo123",
        "forcePathStyle": true,
        "contentType": "application/json",
        "bodyField": "",
        "timeoutMs": 15000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Backup log",
      "category": "utility",
      "config": {
        "message": "backup stored: {{ $json }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "put",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "put",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "Ship a nightly backup object to S3-compatible storage (SigV4) — pre-wired for a local MinIO; the docker one-liner in this description also creates the “backups” bucket. Point endpoint at AWS for the real thing."
  }
}