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 integration with S3-compatible storage services, enabling a wide range of bucket and object management operations. It supports advanced features such as generating presigned URLs for secure temporary access, multipart uploads for large files, and detailed bucket configurations including CORS, lifecycle, policies, tagging, versioning, logging, notifications, replication, encryption, website hosting, metrics, analytics, inventory, request payment, and acceleration.
The "Delete Bucket CORS" operation specifically deletes the Cross-Origin Resource Sharing (CORS) configuration from a specified S3 bucket. This is useful when you want to remove any existing CORS rules that allow cross-origin requests to your bucket, effectively disabling CORS for that bucket.
Common scenarios:
- Removing outdated or incorrect CORS settings from an S3 bucket.
- Resetting bucket CORS configuration as part of security hardening.
- Automating bucket configuration cleanup in deployment pipelines.
Practical example:
You have a bucket used by a web application that previously allowed cross-origin requests from multiple domains. You now want to restrict access and remove all CORS rules. Using this node's "Delete Bucket CORS" operation, you can programmatically delete the CORS configuration without manually accessing the AWS console.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket from which the CORS configuration will be deleted. |
Output
The output JSON object for the "Delete Bucket CORS" operation contains:
bucket: The name of the bucket where the CORS configuration was deleted.message: A confirmation string indicating successful deletion of the bucket's CORS configuration.
Example output JSON:
{
"bucket": "my-bucket-name",
"message": "Bucket CORS configuration deleted successfully"
}
No binary data is produced by this operation.
Dependencies
- Requires valid credentials for an S3-compatible service with permissions to delete bucket CORS configurations.
- The node uses the AWS SDK for JavaScript v3 under the hood.
- Requires configuration of an API key credential with accessKeyId, secretAccessKey, optional sessionToken, region, and optionally endpoint and forcePathStyle parameters.
- Network connectivity to the S3-compatible endpoint is necessary.
Troubleshooting
Common issues:
- Invalid or missing credentials: The operation will fail if the provided API keys are incorrect or lack sufficient permissions to modify bucket CORS settings.
- Bucket not found: If the specified bucket does not exist or is inaccessible, the operation will throw an error.
- Network connectivity problems: Endpoint misconfiguration or network issues can prevent communication with the S3 service.
Error messages and resolutions:
"S3 operation failed: AccessDenied"
Cause: Insufficient permissions.
Resolution: Verify that the API key has permission to delete bucket CORS configurations."S3 operation failed: NoSuchBucket"
Cause: The specified bucket does not exist.
Resolution: Check the bucket name for typos and ensure it exists."S3 operation failed: InvalidAccessKeyId"or"SignatureDoesNotMatch"
Cause: Incorrect access key or secret key.
Resolution: Confirm the correctness of the API credentials."S3 operation failed: ENOTFOUND"or"ECONNREFUSED"
Cause: Cannot reach the endpoint URL.
Resolution: Verify the endpoint URL and network connectivity.