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 and interacting with S3-compatible object storage services. It supports a wide range of bucket and object management features, including creating and deleting buckets, uploading and downloading objects, managing access control lists (ACLs), configuring bucket policies, lifecycle rules, CORS, versioning, logging, notifications, replication, encryption, website hosting, metrics, analytics, inventory, multipart uploads, and more.
The "Delete Bucket Metrics" operation specifically deletes a metrics configuration from a specified S3 bucket using a given configuration ID.
Common scenarios where this node is beneficial:
- Automating S3 bucket and object management tasks within workflows.
- Managing advanced bucket configurations such as lifecycle, replication, and analytics programmatically.
- Generating presigned URLs or POST forms for secure temporary access to objects.
- Handling large file uploads via multipart upload support.
- Integrating S3 storage management into broader automation pipelines without writing custom code.
Practical example:
- You want to remove an obsolete metrics configuration from your S3 bucket to clean up monitoring settings. Using the "Delete Bucket Metrics" operation, you specify the bucket name and the configuration ID to delete that specific metrics configuration.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket to operate on. |
| Configuration ID | Identifier of the metrics configuration to delete from the bucket. |
Output
The output JSON object for the "Delete Bucket Metrics" operation includes:
bucket: The name of the bucket where the metrics configuration was deleted.configurationId: The ID of the deleted metrics configuration.message: Confirmation message indicating successful deletion.
Example output JSON:
{
"bucket": "my-bucket-name",
"configurationId": "metrics-config-id",
"message": "Bucket metrics deleted successfully",
"operation": "deleteBucketMetrics",
"timestamp": "2024-06-01T12:00:00.000Z",
"success": true
}
Dependencies
- Requires valid credentials for an S3-compatible service, including access key ID and secret access key.
- Uses AWS SDK for JavaScript v3 under the hood to interact with the S3 API.
- The node expects proper network connectivity to the configured S3 endpoint.
- No additional environment variables are required beyond the credentials and optional endpoint configuration.
Troubleshooting
- Invalid Credentials: Errors related to invalid access keys or secret keys will occur if the provided credentials are incorrect. Verify and update credentials accordingly.
- Access Denied: If permissions are insufficient to delete bucket metrics, ensure the credentials have the necessary IAM policies.
- Invalid Configuration ID: If the specified configuration ID does not exist in the bucket, the operation may fail. Double-check the ID value.
- Network Issues: Connection errors can happen if the endpoint URL is incorrect or unreachable. Confirm network access and endpoint correctness.
- JSON Parsing Errors: For other operations involving JSON input, malformed JSON will cause errors. Although not applicable here, be mindful when using other operations.
If the node is set to continue on failure, errors will be returned in the output JSON with success: false and an error message.