N8N Tools - S3 Enhanced icon

N8N Tools - S3 Enhanced

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

Overview

The node "N8N Tools - S3 Enhanced" provides a comprehensive set of operations to interact with S3-compatible object storage services. It supports bucket management, object manipulation, access control, lifecycle policies, tagging, multipart uploads, and advanced features like presigned URLs and inventory configurations.

This node is beneficial in scenarios where users need to automate and manage cloud storage tasks such as uploading/downloading files, managing bucket policies, generating temporary access URLs, or configuring analytics and inventory on buckets. For example, it can be used to generate a presigned URL for secure temporary access to an object without exposing credentials, or to retrieve the inventory configuration of a specific bucket.

Specifically, the Get Bucket Inventory operation retrieves the inventory configuration of a specified S3 bucket using a given configuration ID.

Properties

Name Meaning
Bucket Name The name of the S3 bucket to operate on.
Configuration ID The identifier for the specific inventory configuration to get from the bucket.

These properties are required to specify which bucket's inventory configuration should be retrieved and which particular configuration (by ID) to fetch.

Output

The output JSON structure for the Get Bucket Inventory operation includes:

  • bucket: The name of the bucket queried.
  • configurationId: The ID of the inventory configuration requested.
  • inventoryConfiguration: The detailed inventory configuration object returned by the S3 service.

Example output snippet:

{
  "bucket": "my-bucket-name",
  "configurationId": "example-config-id",
  "inventoryConfiguration": {
    // Inventory configuration details as returned by the S3 API
  },
  "operation": "getBucketInventory",
  "timestamp": "2024-06-xxTxx:xx:xx.xxxZ",
  "success": true
}

If the operation fails, the output will contain an error message and success flag set to false.

Dependencies

  • Requires an S3-compatible storage service accessible via AWS SDK v3.
  • Requires valid credentials with appropriate permissions to perform bucket inventory retrieval.
  • The node expects credentials that include access key ID, secret access key, optional session token, region, and optionally endpoint and path style settings.
  • No additional environment variables are explicitly required beyond credential setup.

Troubleshooting

  • Invalid Credentials: Errors related to invalid access keys or secret keys may occur if credentials are incorrect or lack necessary permissions. Verify credentials and permissions.
  • Invalid Configuration ID: If the provided configuration ID does not exist in the bucket, the operation may fail or return empty results. Confirm the configuration ID is correct.
  • Network/Endpoint Issues: Connection errors may arise if the endpoint URL is incorrect or network connectivity is unavailable. Check endpoint settings and network access.
  • JSON Parsing Errors: For operations involving JSON input (not applicable here but relevant for other operations), malformed JSON will cause errors.
  • Access Denied: Insufficient permissions on the bucket or inventory configuration will result in access denied errors. Ensure the credentials have the required IAM policies.

Links and References


This summary focuses on the "Get Bucket Inventory" operation within the "Default" resource of the node, describing its inputs, outputs, and usage context based on static code analysis.

Discussion