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, enabling a wide range of bucket and object management operations. It supports creating and deleting buckets, uploading and downloading objects, managing access control lists (ACLs), configuring bucket policies, CORS, lifecycle rules, versioning, logging, notifications, replication, encryption, website hosting, tagging, multipart uploads, and more.
The "Create Bucket" operation specifically allows users to create a new S3 bucket by specifying its name. This is useful when automating infrastructure setup or dynamically provisioning storage containers for applications.
Practical example:
- Automatically create a new bucket named "my-bucket-name" before uploading files in a workflow.
- Provision separate buckets for different projects or environments programmatically.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket to create |
Output
The output JSON object for the "Create Bucket" operation includes:
bucket: The name of the created bucket (string).location: The location/region URL returned by the S3 service after bucket creation (string).operation: The string"createBucket"indicating the performed operation.timestamp: ISO 8601 timestamp of when the operation was executed.success: Booleantrueindicating successful execution.
Example output JSON:
{
"bucket": "my-bucket-name",
"location": "http://example-region.amazonaws.com/my-bucket-name",
"operation": "createBucket",
"timestamp": "2024-06-01T12:00:00.000Z",
"success": true
}
Dependencies
- Requires an S3-compatible storage service accessible via API.
- Needs credentials providing access key ID, secret access key, optional session token, region, and optionally endpoint URL and path style configuration.
- The node uses AWS SDK v3 clients internally to communicate with the S3 service.
- Proper permissions are required to create buckets on the target S3 service.
Troubleshooting
Common issues:
- Invalid or missing credentials will cause authentication failures.
- Insufficient permissions may result in access denied errors.
- Bucket name conflicts if the bucket already exists or violates naming rules.
- Network connectivity problems to the specified endpoint.
Error messages and resolutions:
"S3 operation failed: <message>"— General failure; check the detailed message for specifics.- Credential-related errors suggest verifying the access key and secret key correctness.
"Access denied"indicates permission issues; ensure the credentials have bucket creation rights."Cannot connect to endpoint"suggests network or endpoint misconfiguration; verify endpoint URL and network access.