Loading...
Loading...
Create an agent platform instance in DMS via Alibaba Cloud OpenAPI. Supports Simple Mode and Advanced Mode. Use this skill when the user wants to provision, deploy, or set up a new Dify instance on Alibaba Cloud DMS.
npx skill4agent add aliyun/alibabacloud-aiops-skills alibabacloud-dms-data-agent-platform-setup[REQUIRED] Verify Aliyun CLI version >= 3.3.1 before proceeding.
aliyun versionbrew install aliyun-cli
# Upgrade if already installed
brew upgrade aliyun-clialiyun configure set --auto-plugin-install truealiyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dms-data-agent-platform-setup"
aliyun plugin update[REQUIRED] Runafter the workflow is complete.aliyun configure ai-mode disable
[REQUIRED] Both credential sets must be configured — Aliyun CLI credentials AND Python SDK credentials. Neither can be omitted. NEVER read, echo, or print AK/SK values.
aliyun dms-enterprise list-instancesopenAPI_call.pyaliyun configure listaliyun configure set \
--mode AK \
--access-key-id <your-access-key-id> \
--access-key-secret <your-access-key-secret> \
--region cn-hangzhoualiyun configure listopenAPI_call.pyNEVER hardcode AK/SK values in code or pass them as command-line arguments.
uv venv .venv
uv pip install --python .venv/bin/python -r scripts/requirements.txtrequirements.txt./scripts/./scripts/openAPI_call.pyRun commands from the directory containing thisfile.skill.md
| Parameter | Description |
|---|---|
| VPC ID |
| VSwitch ID |
| Backup VSwitch ID |
| Security Group ID |
| Availability Zone ID |
| Data region |
| Name for the new Workspace |
| Account | Database account (used for DbInstanceAccount, KvStoreAccount, VectordbAccount; default: |
| Password | Database password (used for DbInstancePassword, KvStorePassword, VectordbPassword) |
| Recommended: set to |
.venv/bin/python ./scripts/openAPI_call.py '{
"VpcId": "<VpcId>",
"VSwitchId": "<VSwitchId>",
"BackupVSwitchId": "<BackupVSwitchId>",
"SecurityGroupId": "<SecurityGroupId>",
"ZoneId": "<ZoneId>",
"DataRegion": "<DataRegion>",
"ResourceQuota": "12CU",
"WorkspaceOption": "CreateNewInstance",
"WorkspaceName": "<WorkspaceName>",
"DatabaseOption": "CreateNewInstance",
"DbInstanceAccount": "<account>",
"DbInstancePassword": "<password>",
"KvStoreOption": "CreateNewInstance",
"KvStoreAccount": "<account>",
"KvStorePassword": "<password>",
"VectordbOption": "CreateNewInstance",
"VectordbAccount": "<account>",
"VectordbPassword": "<password>",
"StorageType": "cloud_essd",
"NatGatewayOption": "NoNeed",
"MajorVersion": "1.13.x",
"Edition": "OpenCommunity",
"DryRun": true
}'| Parameter | Description |
|---|---|
| VPC ID |
| VSwitch ID |
| Backup VSwitch ID |
| Security Group ID |
| Availability Zone ID |
| Data region |
UseExistingInstanceWorkspaceIdCreateNewInstanceWorkspaceNameWorkspaceIdWorkspaceNameCreateNewInstanceUseExistingInstanceDbResourceIdInstanceIdInstanceList.Instancealiyun dms-enterprise list-instances --endpoint dms-enterprise.aliyuncs.comCreateNewInstanceUseExistingInstanceKvStoreResourceIdaliyun dms-enterprise list-instances --endpoint dms-enterprise.aliyuncs.comCreateNewInstanceUseExistingInstanceVectordbResourceIdaliyun dms-enterprise list-instances --endpoint dms-enterprise.aliyuncs.comDbInstanceAccountDbInstancePasswordKvStoreAccountKvStorePasswordVectordbAccountVectordbPassword| Parameter | Default | Allowed Values |
|---|---|---|
| | Custom string |
| | Integer |
| | |
| | |
| | |
| | Integer |
| | Custom string |
| | |
| | |
| | |
| | Recommended: |
DryRun=trueDryRunfalseWorkspaceIdWorkspaceNameDbResourceIdKvStoreResourceIdVectordbResourceIdDryRun=truealiyun configure ai-mode disable