{
  "nodes": [
    {
      "id": "5dbcd30b-7f84-4932-9dff-b5e9865f9b07",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        860,
        680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "639dd225-ae36-4d2b-b341-8662ffe39836",
      "name": "List ALL Files*",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        1080,
        680
      ],
      "parameters": {
        "options": {
          "folderKey": "=yourFolder"
        },
        "operation": "getAll",
        "returnAll": true,
        "bucketName": "=yourBucket"
      },
      "typeVersion": 2
    },
    {
      "id": "cb8b4b07-af86-45b0-9621-a02c22107741",
      "name": "Download ALL Files from Folder*",
      "type": "n8n-nodes-base.awsS3",
      "position": [
        1300,
        680
      ],
      "parameters": {
        "fileKey": "={{ $json.Key }}",
        "bucketName": "=yourBucket"
      },
      "typeVersion": 2
    },
    {
      "id": "df2a3f56-7656-427c-a3b1-df3f1f4997e9",
      "name": "All into one Item (include Binary)",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1520,
        680
      ],
      "parameters": {
        "options": {
          "includeBinaries": true
        },
        "aggregate": "aggregateAllItemData"
      },
      "typeVersion": 1
    },
    {
      "id": "ca0085aa-77f0-4339-8821-11b8e53588da",
      "name": "Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        560
      ],
      "parameters": {
        "width": 367.15098241985504,
        "height": 363.66522445338995,
        "content": "## Instructions\n\nThis workflow downloads all Files from a specific folder in a S3 Bucket and compresses them so you can download it via n8n or do further processings.\n\nFill in your **Credentials and Settings** in the Nodes marked with _\"*\"_.\n\n![Image](https://let-the-work-flow.com/logo-64.png)\nEnjoy the Workflow! ❤️ \nhttps://let-the-work-flow.com\nWorkflow Automation & Development"
      },
      "typeVersion": 1
    },
    {
      "id": "9b12152d-46b8-4e03-9a4b-5bbc0289c78c",
      "name": "Compress all of them to a ZIP",
      "type": "n8n-nodes-base.compression",
      "position": [
        1740,
        680
      ],
      "parameters": {
        "fileName": "=s3-export.zip",
        "operation": "compress",
        "binaryPropertyName": "={{ Object.keys($binary).join(',') }}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "030f092d-3711-5952-92ad-4f1c3dbf9812",
      "name": "Publication · Overview and setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -800,
        0
      ],
      "parameters": {
        "content": "# list aws s3 and download all files from folder and all into one item include binary\n\n## Purpose and structure\nThis folder contains the **list aws s3 and download all files from folder and all into one item include binary** workflow. Its executable nodes use `aggregate`, `awsS3`, `compression`, `manualTrigger`. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.\n\n## Setup\nImport inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.\n\n## Entry points\nWhen clicking ‘Test workflow’\n\n## Verification\nSanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.\n\n## Attribution\nhttps://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Awss3/0593_Awss3_Compression_Automate_Triggered.json\nMIT; preserve source notices.",
        "width": 700,
        "height": 800,
        "color": 1
      }
    }
  ],
  "connections": {
    "List ALL Files*": {
      "main": [
        [
          {
            "node": "Download ALL Files from Folder*",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download ALL Files from Folder*": {
      "main": [
        [
          {
            "node": "All into one Item (include Binary)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "List ALL Files*",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "All into one Item (include Binary)": {
      "main": [
        [
          {
            "node": "Compress all of them to a ZIP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false
}
