N8N Tools - S3 Enhanced
Actions66
- Generate Presigned URL
- Generate Presigned POST
- Create Bucket
- Delete Bucket
- List Buckets
- Upload Object
- Download Object
- Delete Object
- List Objects
- Copy Object
- Get Object ACL
- Put Object ACL
- Get Bucket ACL
- Put Bucket ACL
- Get Bucket CORS
- Put Bucket CORS
- Delete Bucket CORS
- Get Bucket Lifecycle
- Put Bucket Lifecycle
- Delete Bucket Lifecycle
- Get Bucket Policy
- Put Bucket Policy
- Delete Bucket Policy
- Get Object Tagging
- Put Object Tagging
- Delete Object Tagging
- Get Bucket Tagging
- Put Bucket Tagging
- Delete Bucket Tagging
- Create Multipart Upload
- Upload Part
- Complete Multipart Upload
- Abort Multipart Upload
- List Parts
- List Multipart Uploads
- Get Bucket Versioning
- Put Bucket Versioning
- Get Bucket Logging
- Put Bucket Logging
- Get Bucket Notification
- Put Bucket Notification
- Get Bucket Replication
- Put Bucket Replication
- Delete Bucket Replication
- Get Bucket Encryption
- Put Bucket Encryption
- Delete Bucket Encryption
- Get Bucket Website
- Put Bucket Website
- Delete Bucket Website
- Get Bucket Metrics
- Put Bucket Metrics
- Delete Bucket Metrics
- Get Bucket Analytics
- Put Bucket Analytics
- Delete Bucket Analytics
- Get Bucket Inventory
- Put Bucket Inventory
- Delete Bucket Inventory
- Get Bucket Request Payment
- Put Bucket Request Payment
- Get Bucket Accelerate
- Put Bucket Accelerate
- Head Object
- Restore Object
- Select Object Content
Overview
The node "N8N Tools - S3 Enhanced" provides a comprehensive set of operations to interact with S3-compatible object storage services. It supports advanced features such as generating presigned URLs for secure temporary access, multipart uploads for large files, and detailed bucket management including lifecycle, policy, tagging, and more.
This node is beneficial in scenarios where you need to automate or integrate complex S3 bucket and object management tasks within workflows, such as:
- Generating temporary download/upload URLs without exposing credentials.
- Managing bucket lifecycle rules to automate object expiration or transition.
- Handling multipart uploads for large files efficiently.
- Configuring bucket policies, CORS, replication, encryption, and notifications programmatically.
- Querying object content using SQL expressions.
Example use case: Automatically generate a presigned URL to allow a user to upload a file securely to a specific bucket without requiring direct access credentials.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket to operate on. |
For the Get Bucket Lifecycle operation specifically, the only input property required is:
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket |
Output
For the Get Bucket Lifecycle operation, the output JSON structure includes:
bucket: The name of the bucket queried.lifecycleRules: An array containing the lifecycle configuration rules of the bucket. Each rule typically defines actions like expiration, transitions, and filters applied to objects in the bucket.
Additionally, every output includes metadata fields:
operation: The operation performed (e.g., "getBucketLifecycle").timestamp: ISO string timestamp when the operation was executed.success: Boolean indicating if the operation succeeded.
If an error occurs, the output JSON will contain:
error: Error message describing the failure.success: falseoperation: The attempted operation.timestamp: Timestamp of the failure.
No binary data is output by this operation.
Dependencies
- Requires an S3-compatible service endpoint with valid credentials (access key ID and secret access key).
- Uses AWS SDK v3 clients internally to communicate with the S3 API.
- Requires n8n credentials configured with appropriate permissions to perform bucket lifecycle queries.
- No additional environment variables are needed beyond standard credential setup.
Troubleshooting
Common Issues
- Invalid Credentials: If the access key or secret key is incorrect, connection tests and operations will fail.
- Insufficient Permissions: The user/role must have permission to call
GetBucketLifecycleConfigurationon the specified bucket. - Malformed Lifecycle Rules: When setting lifecycle rules (not applicable here but related), invalid JSON format will cause errors.
- Bucket Not Found: Specifying a non-existent bucket will result in an error from the S3 service.
Common Error Messages
"S3 operation failed: <message>": General failure during the S3 API call; check the message for details."Invalid lifecycle rules JSON format": Occurs when lifecycle rules JSON is malformed (for put operations)."Access denied. Check your credentials and permissions.": Indicates insufficient IAM permissions."Cannot connect to endpoint. Check your endpoint URL and network connection.": Network or endpoint misconfiguration.
To resolve errors, verify credentials, bucket existence, permissions, and network connectivity.