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
This node provides enhanced integration with S3-compatible storage services, allowing users to perform a wide range of bucket and object management operations. It supports advanced features such as generating presigned URLs for secure temporary access, multipart uploads for large files, and detailed bucket configuration management.
The "Delete Bucket" operation specifically allows users to delete an existing S3 bucket by specifying its name. This is useful in scenarios where you want to programmatically clean up unused or temporary buckets as part of automation workflows.
Practical example:
- Automatically delete a bucket after all objects have been processed and archived elsewhere.
- Clean up test buckets created during development or CI/CD pipelines.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket to delete |
Output
The output JSON object for the "Delete Bucket" operation includes:
bucket: The name of the deleted bucket (string).deleted: A boolean flag indicating successful deletion (true).operation: The operation performed, here"deleteBucket".timestamp: ISO string timestamp when the operation was executed.success: Boolean indicating if the operation succeeded (true).
Example output JSON:
{
"bucket": "my-bucket-name",
"deleted": true,
"operation": "deleteBucket",
"timestamp": "2024-06-01T12:00:00.000Z",
"success": true
}
No binary data is produced by this operation.
Dependencies
- Requires valid credentials for an S3-compatible service, including access key ID and secret access key, optionally session token, region, endpoint URL, and path style setting.
- Uses AWS SDK v3 for JavaScript under the hood.
- The node expects proper network connectivity to the configured S3 endpoint.
- No additional environment variables are required beyond credential configuration in n8n.
Troubleshooting
Common issues:
- Attempting to delete a non-empty bucket will fail because S3 requires buckets to be empty before deletion.
- Incorrect bucket name or permissions can cause access denied errors.
- Network or endpoint misconfiguration may prevent connection to the S3 service.
Error messages and resolutions:
"Access denied. Check your credentials and permissions."
Ensure the API key has permission to delete buckets."Cannot connect to endpoint. Check your endpoint URL and network connection."
Verify the endpoint URL and network accessibility."S3 operation failed: <error message>"
Review the error message for details; common causes include bucket not empty or invalid bucket name.- If the node throws
"Unknown operation: deleteBucket"it indicates a misconfiguration; ensure the operation parameter is set correctly.