Download files from AWS S3 bucket

Hello, I am trying to download some files from an S3 bucket to send that to another app.
I have tried to search for that File Key configuration but I could not find anything.

Could anyone help me? Thanks.

Welcome to the community @leonhatori!

That is not a configuration. It is the key of the file you want to download. Another description would be file-name. So something like “my-file.csv”.

Thanks for the answer Jan!

So I need to setup a specific file on that field, right?
How should be its configuration?

I need to put the entire s3 path on that? Or only the name of the file?

Hey @leonhatori!

If your file is nested inside a folder, you will have to pass the path as well.

I have used this path to do that: s3://lawing-documents-demo/1/documents/348/0.pdf

But I am getting the following error.

“nodes”: [
“parameters”: {
“bucketName”: “lawing-documents-demo”,
“fileKey”: “=s3://lawing-documents-demo/1/documents/348/0.pdf”
“name”: “AWS S3”,
“type”: “n8n-nodes-base.awsS3”,
“typeVersion”: 1,
“position”: [
“credentials”: {
“aws”: “n8n”
“connections”: {}

Is there anything I am doing wrong here?

Hey @leonhatori!

You don’t need to mention the whole path. Passing 1/documents/348/0.pdf would be enough.