N8N Tools - S3 Enhanced icon

N8N Tools - S3 Enhanced

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

Get Bucket Website

AI-generated

Overview

The node "N8N Tools - S3 Enhanced" provides a comprehensive set of operations to interact with S3-compatible object storage services. It supports advanced features such as generating presigned URLs for secure temporary access, multipart uploads for large files, and managing bucket configurations including website hosting, lifecycle rules, policies, tags, and more.

This node is beneficial in scenarios where you need to automate or integrate complex S3 bucket and object management tasks within workflows, such as:

  • Generating temporary download/upload links without exposing credentials.
  • Managing bucket website configurations programmatically.
  • Handling large file uploads efficiently using multipart upload.
  • Automating bucket policy, CORS, lifecycle, and tagging configurations.
  • Querying object content using SQL expressions.

For example, you can use this node to generate a presigned URL that allows a user to upload a file directly to your S3 bucket securely, or retrieve the current website configuration of a bucket to verify its setup.


Properties

Name Meaning
Bucket Name Name of the S3 bucket to operate on.

Since the operation is fixed to Get Bucket Website, the relevant input property is:

Name Meaning
Bucket Name The name of the S3 bucket whose website configuration you want to retrieve.

Output

The output JSON object for the "Get Bucket Website" operation contains the following fields:

  • bucket: The name of the bucket queried.
  • indexDocument: Configuration details about the index document (e.g., suffix like "index.html").
  • errorDocument: Configuration details about the error document (e.g., key like "error.html").
  • redirectAllRequestsTo: Configuration for redirecting all requests to another host.
  • routingRules: Array of routing rules configured for the bucket website.

These fields represent the website hosting configuration of the specified S3 bucket.

The node does not output binary data for this operation.

Example output snippet:

{
  "bucket": "my-bucket-name",
  "indexDocument": { "Suffix": "index.html" },
  "errorDocument": { "Key": "error.html" },
  "redirectAllRequestsTo": null,
  "routingRules": []
}

Dependencies

  • Requires an S3-compatible service endpoint accessible via AWS SDK v3.
  • Requires credentials with sufficient permissions to call GetBucketWebsite API on the target bucket.
  • The node expects an API key credential (access key ID and secret access key) configured in n8n for authentication.
  • Optional: Custom endpoint and region can be configured in credentials if using non-AWS S3-compatible services.

Troubleshooting

  • Common issues:

    • Access Denied: Ensure the provided credentials have permission to perform GetBucketWebsite on the bucket.
    • Bucket Not Found: Verify the bucket name is correct and exists in the connected S3 service.
    • Invalid Credentials: Check that the access key and secret key are valid and correctly configured.
    • Network/Endpoint Errors: Confirm network connectivity and that the endpoint URL is reachable if using a custom S3-compatible service.
  • Error messages:

    • "S3 operation failed: <message>": General failure during the API call; check the detailed message for cause.
    • "Invalid website configuration JSON format": Not applicable here since this operation only retrieves data, but relevant for setting website config.
  • To resolve errors, verify credentials, bucket existence, permissions, and network connectivity.


Links and References


If you need summaries for other operations or resources, please provide their names.

Discussion