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 object storage services. 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, metrics, analytics, inventory, multipart uploads, and more.

The "Delete Bucket Metrics" operation specifically deletes a metrics configuration from a specified S3 bucket using a given configuration ID.

Common scenarios where this node is beneficial:

  • Automating S3 bucket and object management tasks within workflows.
  • Managing advanced bucket configurations such as lifecycle, replication, and analytics programmatically.
  • Generating presigned URLs or POST forms for secure temporary access to objects.
  • Handling large file uploads via multipart upload support.
  • Integrating S3 storage management into broader automation pipelines without writing custom code.

Practical example:

  • You want to remove an obsolete metrics configuration from your S3 bucket to clean up monitoring settings. Using the "Delete Bucket Metrics" operation, you specify the bucket name and the configuration ID to delete that specific metrics configuration.

Properties

Name Meaning
Bucket Name Name of the S3 bucket to operate on.
Configuration ID Identifier of the metrics configuration to delete from the bucket.

Output

The output JSON object for the "Delete Bucket Metrics" operation includes:

  • bucket: The name of the bucket where the metrics configuration was deleted.
  • configurationId: The ID of the deleted metrics configuration.
  • message: Confirmation message indicating successful deletion.

Example output JSON:

{
  "bucket": "my-bucket-name",
  "configurationId": "metrics-config-id",
  "message": "Bucket metrics deleted successfully",
  "operation": "deleteBucketMetrics",
  "timestamp": "2024-06-01T12:00:00.000Z",
  "success": true
}

Dependencies

  • Requires valid credentials for an S3-compatible service, including access key ID and secret access key.
  • Uses AWS SDK for JavaScript v3 under the hood to interact with the S3 API.
  • The node expects proper network connectivity to the configured S3 endpoint.
  • No additional environment variables are required beyond the credentials and optional endpoint configuration.

Troubleshooting

  • Invalid Credentials: Errors related to invalid access keys or secret keys will occur if the provided credentials are incorrect. Verify and update credentials accordingly.
  • Access Denied: If permissions are insufficient to delete bucket metrics, ensure the credentials have the necessary IAM policies.
  • Invalid Configuration ID: If the specified configuration ID does not exist in the bucket, the operation may fail. Double-check the ID value.
  • Network Issues: Connection errors can happen if the endpoint URL is incorrect or unreachable. Confirm network access and endpoint correctness.
  • JSON Parsing Errors: For other operations involving JSON input, malformed JSON will cause errors. Although not applicable here, be mindful when using other operations.

If the node is set to continue on failure, errors will be returned in the output JSON with success: false and an error message.

Links and References

Discussion