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 operations for managing and interacting with S3-compatible storage buckets and objects. It supports a wide range of bucket and object management features, including creating and deleting buckets, uploading and downloading objects, managing access control lists (ACLs), configuring bucket policies, lifecycle rules, CORS, versioning, logging, notifications, replication, encryption, website hosting, tagging, multipart uploads, and more.

The Put Bucket Accelerate operation specifically allows enabling or suspending the transfer acceleration feature on an S3 bucket. Transfer acceleration speeds up content transfers to and from the bucket by using optimized network paths.

Common scenarios:

  • Enabling transfer acceleration to improve upload/download speed for geographically distributed users.
  • Suspending transfer acceleration when it is no longer needed or to reduce costs.
  • Managing bucket configurations programmatically as part of infrastructure automation.

Practical example:

  • A user wants to enable transfer acceleration on their bucket "my-bucket-name" to speed up file uploads from remote locations. They select the "Put Bucket Accelerate" operation and set the accelerate status to "Enabled".

Properties

Name Meaning
Bucket Name The name of the S3 bucket on which to set the transfer acceleration status.
Accelerate Status The desired transfer acceleration status for the bucket. Options: "Enabled", "Suspended".

Output

The output JSON contains the following fields:

  • bucket: The name of the bucket on which the acceleration status was set.
  • accelerateStatus: The new transfer acceleration status applied to the bucket ("Enabled" or "Suspended").
  • message: Confirmation message indicating that the bucket accelerate configuration was updated successfully.
  • operation: The operation performed, here it will be "putBucketAccelerate".
  • timestamp: ISO string timestamp of when the operation was executed.
  • success: Boolean indicating if the operation succeeded (true).

Example output JSON:

{
  "bucket": "my-bucket-name",
  "accelerateStatus": "Enabled",
  "message": "Bucket accelerate updated successfully",
  "operation": "putBucketAccelerate",
  "timestamp": "2024-06-01T12:00:00.000Z",
  "success": true
}

Dependencies

  • Requires valid credentials for an S3-compatible service with permissions to modify bucket acceleration settings.
  • Uses AWS SDK for JavaScript v3 under the hood.
  • Requires n8n credentials configured with access key ID, secret access key, region, and optionally endpoint and session token for custom S3-compatible services.

Troubleshooting

  • Common issues:

    • Invalid or missing credentials can cause authentication failures.
    • Insufficient permissions on the bucket may result in access denied errors.
    • Incorrect bucket name or non-existent bucket will cause errors.
    • Network connectivity issues to the S3 endpoint can prevent operation execution.
  • Error messages and resolutions:

    • "Invalid Access Key ID": Check that the access key ID is correct.
    • "Invalid Secret Access Key": Verify the secret access key matches the access key ID.
    • "Access Denied": Ensure the credentials have permission to update bucket acceleration.
    • "Cannot connect to endpoint": Confirm the endpoint URL and network connectivity.
    • "Unknown operation: putBucketAccelerate": This should not occur if the node is up to date; update the node if necessary.

Links and References

Discussion