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 Amazon S3 buckets and objects, including advanced features like presigned URLs, multipart uploads, bucket policies, encryption, lifecycle rules, and more. It is designed to facilitate comprehensive interaction with S3-compatible storage services within n8n workflows.

The "Get Bucket Encryption" operation specifically retrieves the server-side encryption configuration of a specified S3 bucket. This is useful when you want to verify or audit the encryption settings applied to your bucket to ensure data security compliance.

Practical example:

  • You have an S3 bucket storing sensitive data and want to confirm that server-side encryption is enabled and configured correctly before processing or sharing data from it. Using this node's "Get Bucket Encryption" operation, you can programmatically fetch the encryption settings as part of an automated workflow.

Properties

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

For this specific operation ("Get Bucket Encryption"), only the Bucket Name property is required.

Output

The output JSON contains the following fields:

  • bucket: The name of the bucket queried.
  • serverSideEncryptionConfiguration: The encryption configuration object returned by the S3 service, detailing the server-side encryption rules applied to the bucket.

Additionally, the output includes metadata fields added by the node:

  • operation: The operation performed (e.g., "getBucketEncryption").
  • timestamp: ISO string timestamp of when the operation was executed.
  • success: Boolean indicating if the operation succeeded (true).

No binary data is output by this operation.

Example output snippet:

{
  "bucket": "my-bucket-name",
  "serverSideEncryptionConfiguration": {
    "Rules": [
      {
        "ApplyServerSideEncryptionByDefault": {
          "SSEAlgorithm": "AES256"
        }
      }
    ]
  },
  "operation": "getBucketEncryption",
  "timestamp": "2024-06-01T12:00:00.000Z",
  "success": true
}

Dependencies

  • Requires valid credentials for an S3-compatible service with permissions to get bucket encryption configuration.
  • Uses AWS SDK v3 for JavaScript internally.
  • The node expects an API key credential with access key ID and secret access key, optionally with session token, region, endpoint, and path style configuration.
  • No additional environment variables are needed beyond standard n8n credential setup.

Troubleshooting

  • Common issues:

    • Invalid or missing credentials will cause authentication errors.
    • Insufficient permissions on the bucket may result in Access Denied errors.
    • Incorrect bucket name or non-existent bucket will cause Not Found errors.
    • Network or endpoint misconfiguration can lead to connection failures.
  • Error messages and resolutions:

    • "Invalid Access Key ID. Please check your credentials." — Verify your access key ID.
    • "Invalid Secret Access Key. Please check your credentials." — Verify your secret access key.
    • "Access denied. Check your credentials and permissions." — Ensure your credentials have permission to perform GetBucketEncryption.
    • "Cannot connect to endpoint. Check your endpoint URL and network connection." — Confirm the endpoint URL and network connectivity.
    • "S3 operation failed: <error message>" — General catch-all error; inspect the detailed message for specifics.

Links and References

Discussion