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
The node "N8N Tools - S3 Enhanced" provides a comprehensive set of operations to interact with S3-compatible object storage services. It supports bucket management, object manipulation, access control, lifecycle policies, tagging, multipart uploads, and advanced features like presigned URLs and inventory configurations.
This node is beneficial in scenarios where users need to automate and manage cloud storage tasks such as uploading/downloading files, managing bucket policies, generating temporary access URLs, or configuring analytics and inventory on buckets. For example, it can be used to generate a presigned URL for secure temporary access to an object without exposing credentials, or to retrieve the inventory configuration of a specific bucket.
Specifically, the Get Bucket Inventory operation retrieves the inventory configuration of a specified S3 bucket using a given configuration ID.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | The name of the S3 bucket to operate on. |
| Configuration ID | The identifier for the specific inventory configuration to get from the bucket. |
These properties are required to specify which bucket's inventory configuration should be retrieved and which particular configuration (by ID) to fetch.
Output
The output JSON structure for the Get Bucket Inventory operation includes:
bucket: The name of the bucket queried.configurationId: The ID of the inventory configuration requested.inventoryConfiguration: The detailed inventory configuration object returned by the S3 service.
Example output snippet:
{
"bucket": "my-bucket-name",
"configurationId": "example-config-id",
"inventoryConfiguration": {
// Inventory configuration details as returned by the S3 API
},
"operation": "getBucketInventory",
"timestamp": "2024-06-xxTxx:xx:xx.xxxZ",
"success": true
}
If the operation fails, the output will contain an error message and success flag set to false.
Dependencies
- Requires an S3-compatible storage service accessible via AWS SDK v3.
- Requires valid credentials with appropriate permissions to perform bucket inventory retrieval.
- The node expects credentials that include access key ID, secret access key, optional session token, region, and optionally endpoint and path style settings.
- No additional environment variables are explicitly required beyond credential setup.
Troubleshooting
- Invalid Credentials: Errors related to invalid access keys or secret keys may occur if credentials are incorrect or lack necessary permissions. Verify credentials and permissions.
- Invalid Configuration ID: If the provided configuration ID does not exist in the bucket, the operation may fail or return empty results. Confirm the configuration ID is correct.
- Network/Endpoint Issues: Connection errors may arise if the endpoint URL is incorrect or network connectivity is unavailable. Check endpoint settings and network access.
- JSON Parsing Errors: For operations involving JSON input (not applicable here but relevant for other operations), malformed JSON will cause errors.
- Access Denied: Insufficient permissions on the bucket or inventory configuration will result in access denied errors. Ensure the credentials have the required IAM policies.
Links and References
- AWS S3 GetBucketInventoryConfiguration API
- AWS SDK for JavaScript v3 - S3 Client
- n8n Documentation - Creating Custom Nodes
This summary focuses on the "Get Bucket Inventory" operation within the "Default" resource of the node, describing its inputs, outputs, and usage context based on static code analysis.