N8N Tools - S3 Enhanced icon

N8N Tools - S3 Enhanced

Enhanced S3 operations with presigned URLs, multipart upload, and advanced features

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: Boolean true indicating 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.

Links and References

Discussion