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 Put Bucket ACL operation specifically allows setting the Access Control List (ACL) permissions on an S3 bucket, controlling who can access the bucket and what actions they can perform.

Common scenarios:

  • Setting bucket permissions to control public or private access.
  • Automating bucket permission updates as part of deployment or data lifecycle workflows.
  • Managing access rights in multi-user environments or across different teams.

Practical example:

  • Automatically set a newly created bucket's ACL to "private" to restrict access.
  • Change a bucket's ACL to "public-read" to allow public read access for hosting static website content.

Properties

Name Meaning
Bucket Name The name of the S3 bucket on which to set the ACL.
ACL The Access Control List permission to apply to the bucket. Options include:
- Private
- Public Read
- Public Read Write
- Authenticated Read
- AWS Exec Read
- Bucket Owner Read
- Bucket Owner Full Control

Output

The output JSON object for the Put Bucket ACL operation includes:

  • bucket: The name of the bucket whose ACL was updated.
  • acl: The ACL permission that was applied.
  • message: A confirmation string indicating successful update, e.g., "Bucket ACL updated successfully".

Example output JSON:

{
  "bucket": "my-bucket-name",
  "acl": "private",
  "message": "Bucket ACL updated successfully",
  "operation": "putBucketAcl",
  "timestamp": "2024-06-xxTxx:xx:xx.xxxZ",
  "success": true
}

Dependencies

  • Requires valid credentials with appropriate permissions to manage S3 buckets.
  • Needs an API key credential for S3-compatible service authentication.
  • Uses AWS SDK for JavaScript v3 under the hood.
  • Configuration of region, endpoint, and optional session token may be required depending on the S3-compatible service used.

Troubleshooting

  • Access Denied Errors: Ensure the provided credentials have sufficient permissions to modify bucket ACLs.
  • Invalid Bucket Name: Verify the bucket name exists and is correctly spelled.
  • Network/Endpoint Issues: Check network connectivity and endpoint URL if using a custom S3-compatible service.
  • Invalid ACL Value: Use one of the supported ACL options; invalid values will cause errors.
  • JSON Parsing Errors: Not applicable for this operation since ACL is selected from predefined options.

If the node throws an error like S3 operation failed: <message>, check the message for clues such as permission issues or invalid parameters.


Links and References

Discussion