Actions12
Bucket → Create
AI-generatedOverview
The Aliyun OSS node for n8n allows you to interact with Alibaba Cloud's Object Storage Service (OSS). Specifically, the Bucket → Create operation enables you to create a new storage bucket in your Aliyun OSS account. This is useful for organizing and managing files, backups, or any data that needs to be stored in the cloud. Common scenarios include setting up new storage containers for applications, archiving data, or preparing isolated environments for different projects or clients.
Practical examples:
- Automatically creating a new bucket when onboarding a new client.
- Setting up buckets for periodic data backups.
- Creating region-specific buckets for compliance or latency optimization.
Properties
| Name | Meaning |
|---|---|
| Name | The name of the bucket to create. This should be unique within your Aliyun OSS account. |
| Additional Fields | A collection of optional settings for the bucket: - ACL: Access control level. Options: Authenticated Read, Private, Public Read, Public Read Write. - Bucket Object Lock Enabled: Enable S3 Object Lock. - Grant Full Control: Allow grantee full permissions. - Grant Read: Allow grantee to list objects. - Grant Read ACP: Allow grantee to read the bucket ACL. - Grant Write: Allow grantee to create, overwrite, and delete objects. - Grant Write ACP: Allow grantee to write the ACL. - Region: Specify the region for the bucket; defaults to the region set in credentials if not specified. |
Output
The output will be a JSON object indicating the success of the bucket creation:
{
"success": true
}
If an error occurs and "Continue On Fail" is enabled, the output will be:
{
"error": "Error message"
}
Dependencies
- Aliyun OSS Account: You must have valid Aliyun OSS credentials (Access Key ID, Access Key Secret, and Region).
- n8n Credentials: The node requires an "aliyun" credential configured in n8n.
- ali-oss npm package: Used internally by the node to interact with the OSS API.
Troubleshooting
Common Issues:
- Invalid Bucket Name: Bucket names must be globally unique and follow Aliyun's naming rules.
- Missing Permissions: Ensure your credentials have permission to create buckets.
- Region Mismatch: If the region is not specified or incorrect, bucket creation may fail.
- Network/Connectivity Errors: Make sure n8n can reach Aliyun OSS endpoints.
Common Error Messages:
"The specified bucket already exists": Choose a unique bucket name."InvalidAccessKeyId"or"SignatureDoesNotMatch": Check your credentials."You are not authorized to perform this action": Update your IAM policy or use credentials with sufficient permissions.