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, tagging, lifecycle rules, and more. It is designed to interact with S3-compatible storage services, allowing users to perform a wide range of bucket and object management tasks programmatically within n8n workflows.

The Delete Bucket Policy operation specifically deletes the policy attached to a specified S3 bucket, effectively removing any custom access control policies applied to that bucket.

Common scenarios where this node is beneficial:

  • Automating S3 bucket and object management in workflows.
  • Managing bucket policies dynamically based on application logic.
  • Removing outdated or incorrect bucket policies as part of cleanup or security enforcement.
  • Integrating S3 operations into larger automation pipelines without manual intervention.

Practical example:

  • A workflow that audits bucket policies and removes policies from buckets that no longer require them by using the Delete Bucket Policy operation.

Properties

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

For the Delete Bucket Policy operation, only the "Bucket Name" property is required and used.


Output

The output JSON object for the Delete Bucket Policy operation includes:

  • bucket: The name of the bucket whose policy was deleted.
  • message: Confirmation string indicating successful deletion of the bucket policy.

Example output JSON:

{
  "bucket": "my-bucket-name",
  "message": "Bucket policy deleted successfully"
}

No binary data is output by this operation.


Dependencies

  • Requires an API key credential with appropriate permissions to manage S3 buckets and policies.
  • Uses AWS SDK for JavaScript v3 (@aws-sdk/client-s3) internally.
  • Requires proper configuration of credentials and optionally region, endpoint, and session token for S3-compatible services.
  • The node expects valid network connectivity to the S3 service endpoint.

Troubleshooting

Common issues:

  • Access Denied: Insufficient permissions to delete the bucket policy. Ensure the API key has the necessary IAM permissions.
  • Invalid Bucket Name: The specified bucket does not exist or the name is incorrect.
  • Network Errors: Unable to connect to the S3 endpoint due to network issues or incorrect endpoint URL.
  • Malformed Credentials: Incorrect or missing access keys or session tokens.

Common error messages and resolutions:

  • "S3 operation failed: Access denied. Check your credentials and permissions."
    Resolution: Verify that the API key has permission to delete bucket policies.

  • "S3 operation failed: Cannot connect to endpoint. Check your endpoint URL and network connection."
    Resolution: Confirm the endpoint URL is correct and the network allows outbound connections.

  • "S3 operation failed: Unknown operation: <operation>"
    Resolution: This indicates an unsupported operation was requested; ensure the operation parameter is set correctly.


Links and References


If you need details about other operations or resources, feel free to ask!

Discussion