N8N Tools - S3 Enhanced
Actions66
- Generate Presigned URL
- Generate Presigned POST
- Create Bucket
- Delete Bucket
- List Buckets
- Upload Object
- Download Object
- Delete Object
- List Objects
- Copy Object
- Get Object ACL
- Put Object ACL
- Get Bucket ACL
- Put Bucket ACL
- Get Bucket CORS
- Put Bucket CORS
- Delete Bucket CORS
- Get Bucket Lifecycle
- Put Bucket Lifecycle
- Delete Bucket Lifecycle
- Get Bucket Policy
- Put Bucket Policy
- Delete Bucket Policy
- Get Object Tagging
- Put Object Tagging
- Delete Object Tagging
- Get Bucket Tagging
- Put Bucket Tagging
- Delete Bucket Tagging
- Create Multipart Upload
- Upload Part
- Complete Multipart Upload
- Abort Multipart Upload
- List Parts
- List Multipart Uploads
- Get Bucket Versioning
- Put Bucket Versioning
- Get Bucket Logging
- Put Bucket Logging
- Get Bucket Notification
- Put Bucket Notification
- Get Bucket Replication
- Put Bucket Replication
- Delete Bucket Replication
- Get Bucket Encryption
- Put Bucket Encryption
- Delete Bucket Encryption
- Get Bucket Website
- Put Bucket Website
- Delete Bucket Website
- Get Bucket Metrics
- Put Bucket Metrics
- Delete Bucket Metrics
- Get Bucket Analytics
- Put Bucket Analytics
- Delete Bucket Analytics
- Get Bucket Inventory
- Put Bucket Inventory
- Delete Bucket Inventory
- Get Bucket Request Payment
- Put Bucket Request Payment
- Get Bucket Accelerate
- Put Bucket Accelerate
- Head Object
- Restore Object
- Select Object Content
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
- AWS S3 Bucket Policy Documentation
- AWS SDK for JavaScript v3 - S3 Client
- Amazon S3 Concepts - Bucket Policies
If you need details about other operations or resources, feel free to ask!