Token导航 LogoToken导航

Agent Skill · 研究检索

alibabacloud-mongodb-instances-manage(alibabacloud MongoDB instances manage 搜索)

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

alibabacloud-mongodb-instances-manage 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 48,372。

总安装 692周安装 28GitHub Stars 79下载 217核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-mongodb-instances-manage(alibabacloud MongoDB instances manage 搜索)
来源仓库:https://github.com/aliyun/alibabacloud-aiops-skills
仓库路径:skills/alibabacloud-mongodb-instances-manage
安装命令:
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-mongodb-instances-manage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-mongodb-instances-manage

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

创建与管理阿里云 MongoDB 实例,支持单节点、副本集与分片集群形态。适用于数据库选型、容量规划与灾备架构设计等场景。alibabacloud-mongodb-instances-manage 属于研究检索类 Skill,可作为该场景下的辅助能力补充。提供标准化的实例规格与网络配置建议,降低新手使用门槛。

需预先安装指定版本 CLI 并启用自动插件安装机制。所有信息展示均需脱敏处理,避免泄露敏感配置细节。

来源仓库内路径:skills/alibabacloud-mongodb-instances-manage

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill aliba…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

alibabacloud-mongodb-instances-manage 怎么安装?

在终端执行 npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-mo…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

alibabacloud-mongodb-instances-manage 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

alibabacloud-mongodb-instances-manage 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

alibabacloud-mongodb-instances-manage 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

alibabacloud-mongodb-instances-manage 用的人多吗?

公开数据是累计安装 692 次,近一周安装 28 次,下载 217 次,GitHub 79 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

alibabacloud-mongodb-instances-manage 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
alibabacloud-mongodb-instances-manage

alibabacloud MongoDB instances manage 搜索 · 本页

69279接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Alibaba Cloud MongoDB Instance Management

Create and manage Alibaba Cloud ApsaraDB for MongoDB instances: Standalone (dev/test), Replica Set (read-heavy), Sharded Cluster (high concurrency).

Installation Requirements

Pre-check: Aliyun CLI >= 3.3.1 required Run aliyun version to verify. If needed, see references/cli-installation-guide.md. Then [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.
aliyun version
aliyun plugin install --names dds kms resourcemanager bssopenapi

Information Display Standards

[MUST] All information displayed to the user must comply with: 1. No fabricated output: All displayed information must come from actual API query results. Speculation, fabrication, or splicing is strictly prohibited 2. Truncation handling: If API response is truncated (e.g., omitted), must re-query completely before displaying 3. Count validation: Displayed count must match TotalCount/actual count returned by API 4. No speculative time estimates: Do not provide time estimates without official documentation basis; only confirm status via API polling 5. Write operation response standard: After issuing any write operation (create, modify spec, cloud disk reconfiguration, add/delete node, etc.), only display RequestId (and DBInstanceId/OrderId if available), then ask the user whether to poll instance status. Do NOT start polling automatically before user confirmation. 6. Auto-polling rules after instance creation: - It typically takes 10-25 minutes for a newly created instance to reach Running status - Scenario A: User only creates an instance with no follow-up operations → ask whether to poll - Scenario B: User has follow-up operations after creation (e.g., modify spec, configure whitelist, etc.) and has NOT explicitly stated they will check status manually → MUST auto-poll, querying describe-db-instance-attribute every 30 seconds until status is Running or timeout (30 minutes) - Scenario C: User explicitly states "I'll check myself", "handle it later", etc. → do not auto-poll, handle as Scenario A 7. Security configuration guidance after instance creation: After instance creation completes (status is Running), MUST proactively ask whether to perform security configuration (see security configuration menu in "Parameter Confirmation" section) 8. Subscription instance display: Must show remaining days; instances expiring within 10 days must display a warning below the list and guide toward renewal

Instance Status Pre-check Standard

[MUST] Must check instance status before executing non-query operations: 1. Call describe-db-instance-attribute to check DBInstanceStatus 2. Operations can only be issued when status is Running | Status | Description | Can Issue | | --- | --- | --- | | Running | Running | ✅ | | DBInstanceClassChanging | Changing spec | ❌ | | NodeCreating / NodeDeleting | Creating/Deleting node | ❌ | | Creating | Creating | ❌ | | Locked | Locked | ❌ Investigate cause first | Locked status diagnosis (check LockMode field): - LockByDiskQuota: Disk usage exceeded; auto-unlocks after expanding storage or cleaning data - Other values: Overdue or expired; renew or recharge ``bash aliyun dds describe-db-instance-attribute --db-instance-id <id> --region <region> \ --user-agent AlibabaCloud-Agent-Skills 2>&1 | grep '"DBInstanceStatus"' ``

Authentication

Pre-check: Alibaba Cloud Credentials Required - NEVER read/echo/print AK/SK values (do NOT run echo $ALIBABA_CLOUD_ACCESS_KEY_ID) - ONLY use aliyun configure list to check credential status ``bash aliyun configure list `` If no valid profile exists, obtain credentials from RAM Console and configure outside this session.

RAM Permissions

This skill requires the following RAM permissions. See references/ram-policies.md § Full Permission Quick Reference for the complete list.

[MUST] Permission error handling: When detecting Forbidden.RAM/NoPermission/Forbidden/SubAccountNoPermission: 1. Identify the missing permission (extract Action and Resource from the error message) 2. Guide the user to refer to references/ram-policies.md to request permissions 3. Wait for user confirmation that permission has been granted before retrying; do NOT continue execution before the permission issue is resolved

Query Regions and Instances

[MUST] Region confirmation standard: 1. When the user has not specified a region, ask for the region first; do not iterate and search directly 2. Only iterate in the following order when the user explicitly states they are unsure: cn-beijing → cn-shanghai → ap-southeast-1 → us-west-1 → us-east-1 → cn-hangzhou → cn-shenzhen → cn-chengdu → cn-hongkong; if still not found, call DescribeRegions to get remaining regions 3. Query routing: Querying via cn-hangzhou may return instances from other regions; when displaying, RegionId must be based on the RegionId field returned by the API, not the query parameter 4. List display: Must be categorized by instance type; Subscription instances must show remaining days; instances expiring within 10 days must display a warning below the list and guide toward renewal
# Query instance list (must query separately in two calls, otherwise sharded clusters will be missed)
aliyun dds describe-db-instances --biz-region-id <region> --db-instance-type replicate --page-size 50 --user-agent AlibabaCloud-Agent-Skills
aliyun dds describe-db-instances --biz-region-id <region> --db-instance-type sharding --page-size 50 --user-agent AlibabaCloud-Agent-Skills
# ⚠️ Without --db-instance-type, only replicate is returned by default; sharded clusters will be missed

# Query single instance details
aliyun dds describe-db-instance-attribute --db-instance-id <id> --region <region> --user-agent AlibabaCloud-Agent-Skills

# Query all supported regions
aliyun dds DescribeRegions --user-agent AlibabaCloud-Agent-Skills
Cross-region lookup scripts and full-region scan scripts: see references/operations.md § Query Regions and Instances

Parameter Confirmation

[MUST] Before executing any create/modify operation, must display a complete parameter list to the user and obtain Y/Yes confirmation

Workflow: Collect parameters → Display parameter list → Wait for Y confirmation → Execute → Only display RequestId/DBInstanceId → Ask whether to poll → Display security configuration guidance after completion

Security configuration guidance menu must be displayed after instance creation:

[0] Set root password         - Cannot connect without password (priority)
[1] Set IP whitelist          - Configure allowed access IPs
[2] Bind ECS security group   - Control access via security group
[3] Associate global whitelist template - Use unified whitelist template
[4] Modify maintenance window - Set maintenance window
[5] Allocate public address   - Enable public access (dev/test only)
[N] Skip
Full parameter confirmation format and required/optional parameter tables: see references/operations.md § Parameter Confirmation

Core Workflow

StepNameTypeDescription
0Create resource groupOptionalExecute when resource group management is needed
0.5Create KMS instanceOptionalExecute when cloud disk encryption is needed
1Query VPC/VSwitchOptionalExecute when user has not provided VPC
2Validate VPC/VSwitchRequiredEnsure VPC/VSwitch are available
3Validate zoneRequired for standaloneConfirm target zone supports standalone
4Parameter confirmationRequiredMust confirm before creation
5Create instanceRequiredCore operation
6Verify creationRequiredConfirm instance creation succeeded
StepSkip Condition
Create resource groupUsing default resource group
Create KMS instanceUsing default key or no encryption
Query VPC/VSwitchUser already provided VPC/VSwitch ID (but validation is still required)
Validate zoneCreating replica set or sharded cluster instance
[MUST] Mandatory validation when user provides VPC/VSwitch: Even if the user has provided VPC ID and VSwitch ID, must first call the following APIs to validate correctness and availability: 1. describe-rds-vpcs: Validate whether VPC ID exists and is available 2. describe-rds-vswitchs: Validate whether VSwitch ID exists in the specified VPC and matches the target zone 3. If any validation fails, must inform the user of the specific error and guide correction; do NOT directly use unvalidated VPC/VSwitch to create instances
[MUST] VPC/VSwitch validation must use DDS-specific APIs; generic VPC APIs (vpc DescribeVpcs/vpc DescribeVSwitches) are prohibited:
# Step 1: Query available VPC list for specified zone (DDS-specific)
aliyun dds describe-rds-vpcs --zone-id <zone> --region <region> --user-agent AlibabaCloud-Agent-Skills

# Step 2: Query available VSwitches under specified VPC (DDS-specific)
aliyun dds describe-rds-vswitchs --vpc-id <vpc-id> --zone-id <zone> --region <region> --user-agent AlibabaCloud-Agent-Skills
Detailed commands and parameters: see references/operations.md § Step 2: Query and Validate VPC and VSwitch

Create Replica Set Instance

- --db-instance-class must be queried via describe-available-resource (specs differ by region/zone/version/storage type) - --zone-id must match the zone of --vswitch-id, otherwise InvalidVpcIdRegion.NotSupported error - Multi-zone deployment requires --secondary-zone-id and --hidden-zone-id
aliyun dds create-db-instance \
  --biz-region-id <region> --zone-id <zone> --engine-version <ver> \
  --db-instance-class <class> --db-instance-storage <GB> \
  --vpc-id <vpc> --vswitch-id <vsw> --network-type VPC \
  --replication-factor 3 --storage-type cloud_essd1 --charge-type PostPaid \
  --db-instance-description <name> --user-agent AlibabaCloud-Agent-Skills
# Optional: --secondary-zone-id --hidden-zone-id --readonly-replicas --encryption-key --resource-group-id
# Subscription: --charge-type PrePaid --period 1 --auto-renew true

Create Standalone Instance

- --replication-factor 1 --db-type replicate, storage type fixed to cloud_essd1 - Must use standalone-specific specs (ending with .1 like dds.sn2.large.1, or containing .single); cannot use replica set specs - Not supported in some regions/zones; must query describe-available-resource --replication-factor 1 before creation - When InvalidDBInstanceNodeCount error occurs, try other zones or suggest switching to replica set
aliyun dds create-db-instance ... --db-type replicate --replication-factor 1 \
  --db-instance-class <standalone-specific-spec> --storage-type cloud_essd1 --user-agent AlibabaCloud-Agent-Skills

Create Sharded Cluster Instance

- Minimum 2 Mongos and 2 Shards each (max 32); each Shard is a 3-node replica set by default - --mongos / --replica-set parameters need to be repeated (specifying one node each time) - Use --db-type sharding to query sharded cluster specs (--db-type normal is for replica sets only)
aliyun dds create-sharding-db-instance \
  --biz-region-id <region> --zone-id <zone> --engine MongoDB --engine-version <ver> \
  --vpc-id <vpc> --vswitch-id <vsw> --network-type VPC \
  --mongos Class=<class> --mongos Class=<class> \
  --replica-set Class=<class> ReadonlyReplicas=0 Storage=20 \
  --replica-set Class=<class> ReadonlyReplicas=0 Storage=20 \
  --config-server Class=<class> Storage=20 \
  --storage-type cloud_essd1 --charge-type PostPaid --user-agent AlibabaCloud-Agent-Skills

Instance Creation Error Diagnosis

Error CodeSolution
InvalidDBInstanceNodeCountCurrent region/zone does not support standalone; switch region/zone or use replica set
InvalidVPCId.NotFoundVPC does not exist; query available VPC list
InvalidZoneId.NotFoundZone does not exist; query supported zones
InvalidVpcIdRegion.NotSupportedzone-id does not match the zone of vswitch-id
QuotaExceededInstance quota exceeded; release idle instances or request quota increase
InvalidDBInstanceClass.NotFoundSpec does not exist; query available spec list
InvalidDBInstanceStorageStorage space invalid (minimum/step not met)
DBInstancePreCheckErrorPre-check failed; check if instance status is Running
INSUFFICIENT_RESOURCE_ERRORInsufficient resources; retry in order: switch zone → switch spec → switch region (max 3 times)
InvalidDbType--db-type only supports normal or sharding
SYSTEM.SALE_VALIDATE_NO_SPECIFIC_CODE_FAILEDSales validation failed; switch zone or spec, check account balance

Modify Replica Set Instance Configuration

[MUST] Before modification: 1. Query current configuration (describe-db-instance-attribute), extract DBInstanceStatus/DBInstanceClass/DBInstanceStorage/ReplicationFactor/ReadonlyReplicas/StorageType 2. Display "Current vs. New" comparison table and obtain user Y confirmation 3. Do NOT execute modification command before user confirmation Limitations: Storage downsizing, instance type change, and storage type change are not supported (for ESSD conversion, use the Cloud Disk Reconfiguration section) Impact: Modification may cause 1-2 brief disconnections of ~30 seconds; recommended during off-peak hours After successful modification command, only display RequestId/OrderId; do NOT auto-poll; must ask user for confirmation before starting
aliyun dds modify-db-instance-spec --db-instance-id <id> \
  [--db-instance-class <class>] [--db-instance-storage <GB>] \
  [--replication-factor 3/5/7] [--readonly-replicas 0-5] \
  [--order-type UPGRADE/DOWNGRADE] [--auto-pay true] \
  --effective-time Immediately/MaintainTime --user-agent AlibabaCloud-Agent-Skills
Full parameter description: see references/operations.md § Modify Replica Set Instance

Delete Instance

[MUST] Must confirm billing type before deletion: - PostPaid (Pay-As-You-Go): Can be deleted directly - PrePaid (Subscription): Cannot be deleted directly; must wait for expiration or request refund via console Before deletion, must display confirmation information to the user (instance ID, region, billing type, irreversible data loss warning), requiring the user to reply "confirm delete {instance ID}"
aliyun dds DeleteDBInstance --DBInstanceId <id> --region <region> --user-agent AlibabaCloud-Agent-Skills

Sharded Cluster Node Management

[MUST] Key limitations: - Must retain at least 2 Mongos/Shards each, max 32 - New Shard configuration (spec + storage) must be ≥ the highest-configured existing Shard - modify-node-spec strictly serial: must wait for previous modification to complete (Running) before issuing the next - Batch modification modify-node-spec-batch does NOT support changing Shard readonly replica count; use individual modification instead - When modifying multiple Shards, must confirm spec mapping and execution order with the user - Storage in NodesInfo must be a numeric type (not string), otherwise InvalidParameter error
# Query sharded cluster node details (ShardList/MongosList contain NodeId)
aliyun dds describe-db-instance-attribute --db-instance-id <id> --user-agent AlibabaCloud-Agent-Skills

# Add single node
aliyun dds create-node --db-instance-id <id> --node-type mongos/shard --node-class <class> [--node-storage <GB>] --user-agent AlibabaCloud-Agent-Skills

# Batch add nodes (JSON format)
aliyun dds create-node-batch --db-instance-id <id> --nodes-info '{"Shards":[{"DBInstanceClass":"spec","Storage":40}],"Mongos":[{"DBInstanceClass":"spec"}]}' --auto-pay true --user-agent AlibabaCloud-Agent-Skills

# Single node modification (strictly serial)
aliyun dds modify-node-spec --db-instance-id <id> --node-id <node-id> --node-class <class> [--node-storage <GB>] [--readonly-replicas 0-5] --effective-time Immediately/MaintainTime --user-agent AlibabaCloud-Agent-Skills

# Batch modification (does not support readonly replica changes, requires DBInstanceName)
aliyun dds modify-node-spec-batch --db-instance-id <id> --nodes-info '{"Shards":[{"DBInstanceClass":"spec","DBInstanceName":"d-xxx","Storage":40}]}' --auto-pay true --effective-time Immediately --user-agent AlibabaCloud-Agent-Skills

# Release node
aliyun dds delete-node --db-instance-id <id> --node-id <node-id> --user-agent AlibabaCloud-Agent-Skills
Detailed command examples and NodesInfo format: see references/operations.md § Sharded Cluster Node Management

Cloud Disk Reconfiguration (Disk Type Upgrade)

[MUST] Independent from instance spec modification; used for disk type change or provisioned IOPS adjustment: - Only supports ESSD PL1/PL2/PL3 → ESSD AutoPL (cloud_auto), one-way irreversible - Prerequisite: Replica set storage > 40GB; Sharded cluster Shard storage > 40GB - Provisioned IOPS range: 0~50000; interval between two modifications must be > 1 hour - Before execution, must query and display MaxIOPS/MaxMBPS/StorageType, obtain user Y confirmation - Do NOT execute before user confirmation
aliyun dds modify-db-instance-disk-type --db-instance-id <id> \
  --db-instance-storage-type cloud_auto [--provisioned-iops <0~50000>] \
  --region <region> --user-agent AlibabaCloud-Agent-Skills
Full parameter description: see references/operations.md § Cloud Disk Reconfiguration

IOPS and Throughput Calculation Rules

[MUST] Applicable only to cloud disk instances (not applicable to local disk): - When displaying baseline IOPS/throughput, must use MaxIOPS/MaxMBPS fields returned by API, NOT formula-calculated values (actual values ≥ formula values) - Formula (reference): IOPS = min{1800+50×StorageGB, spec limit, disk type limit} - IOPS improvement priority: Expand storage > Upgrade spec > Change disk type Full spec limit tables and calculation examples: see references/operations.md § IOPS and Throughput Calculation Rules

Reset root Password

[MUST] For sharded clusters, must ask the user before resetting password: `` Which node type's password do you want to reset? [1] db node (mongod, stores business data) [2] cs node (configServer, stores cluster metadata) [3] Reset both (execute twice separately) ` Determine execution count based on user's answer; **do NOT auto-execute twice without user confirmation** **Password rules:** 8-32 characters, must contain at least three of: uppercase letters/lowercase letters/digits/special characters (!@#$%^&*()_+-=`)
# Replica set / Standalone
aliyun dds reset-account-password --db-instance-id <id> --account-name root \
  --account-password <pwd> --region <region> --user-agent AlibabaCloud-Agent-Skills

# Sharded cluster (--character-type db or cs, required)
aliyun dds reset-account-password --db-instance-id <id> --account-name root \
  --account-password <pwd> --character-type db --region <region> --user-agent AlibabaCloud-Agent-Skills

Instance Security Configuration

Manage IP Whitelist

[MUST] Before modifying whitelist: 1. First query current whitelist (describe-security-ips) and display to user 2. Ask for modification mode: Cover (overwrite, ⚠️ deletes existing IPs) / Append (add, errors on duplicate IPs) / Extend (extend, recommended) 3. Do NOT use Cover mode without asking the user
aliyun dds describe-security-ips --db-instance-id <id> --user-agent AlibabaCloud-Agent-Skills
aliyun dds modify-security-ips --db-instance-id <id> --security-ips <IPs> --modify-mode Extend --user-agent AlibabaCloud-Agent-Skills
# Specify group: add --security-ip-group-name <name>

Manage ECS Security Groups

Note: ECS security groups bound to sharded clusters only apply to Mongos nodes.
aliyun dds modify-security-group-configuration --db-instance-id <id> --security-group-id <sg-id> --user-agent AlibabaCloud-Agent-Skills
aliyun dds describe-security-group-configuration --db-instance-id <id> --user-agent AlibabaCloud-Agent-Skills

Manage Global Whitelist Templates

[MUST] All global whitelist commands must specify both --region and --biz-region-id (same value) Use --db-cluster-id (NOT --db-instance-id) when associating with instances
# Create
aliyun dds create-global-security-ip-group --biz-region-id <region> --region <region> --global-ig-name <name> --gip-list <IPs> --user-agent AlibabaCloud-Agent-Skills
# Query
aliyun dds describe-global-security-ip-group --biz-region-id <region> --region <region> --user-agent AlibabaCloud-Agent-Skills
# Associate with instance
aliyun dds modify-global-security-ip-group-relation --db-cluster-id <id> --global-security-group-id <gid> --biz-region-id <region> --region <region> --user-agent AlibabaCloud-Agent-Skills

Manage Public Network Address

[MUST] Prerequisites for SRV address: 1. Instance must be cloud disk type (StorageType starts with cloud_). Local disk instances do not support SRV addresses 2. For public SRV address: must allocate public network address first (allocate-public-network-address), then apply for SRV 3. For sharded clusters: must first allocate public address for Mongos node (--node-id <s-xxx>), then call allocate-db-instance-srv-network-address --srv-connection-type public 4. After each allocation, wait for instance to return to Running before next operation Check flow for sharded cluster public SRV: 1. describe-sharding-network-address → check if Mongos has NetworkType=Public address 2. If no public address → allocate-public-network-address --node-id <mongos-s-xxx> → wait Running 3. allocate-db-instance-srv-network-address --srv-connection-type public → wait Running 4. describe-sharding-network-address → confirm NodeType=logic with srv in address Query addresses: Use describe-replica-set-role for replica sets; for sharded clusters, must use describe-sharding-network-address (describe-db-instance-attribute does not return sharded cluster network addresses) In results, NetworkType=Public indicates public network; NodeType=logic with srv indicates SRV address
# Allocate public address (add --node-id <s-xxx> for sharded clusters)
aliyun dds allocate-public-network-address --db-instance-id <id> [--node-id <s-xxx>] --region <region> --user-agent AlibabaCloud-Agent-Skills
# Release public address
aliyun dds release-public-network-address --db-instance-id <id> [--node-id <s-xxx>] --region <region> --user-agent AlibabaCloud-Agent-Skills
# Allocate SRV address (vpc=private, public=public; public SRV requires public network address first)
aliyun dds allocate-db-instance-srv-network-address --db-instance-id <id> --srv-connection-type vpc/public --region <region> --user-agent AlibabaCloud-Agent-Skills
# Query (replica set)
aliyun dds describe-replica-set-role --db-instance-id <id> --region <region> --user-agent AlibabaCloud-Agent-Skills
# Query (sharded cluster)
aliyun dds describe-sharding-network-address --db-instance-id <id> --region <region> --user-agent AlibabaCloud-Agent-Skills

Manage Instance Renewal

Renewal only applies to Subscription instances; auto-renewal takes effect the next day; no immediate charge on the day of activation. See references/operations.md for charge retry schedules.
# Manual renewal (--period: 1~9, 12, 24, 36 months)
aliyun dds renew-db-instance --db-instance-id <id> --period <months> --auto-pay true --region <region> --user-agent AlibabaCloud-Agent-Skills
# Enable auto-renewal (--duration required, in months)
aliyun dds modify-instance-auto-renewal-attribute --db-instance-id <id> --auto-renew true --duration 1 --biz-region-id <region> --user-agent AlibabaCloud-Agent-Skills
# Disable auto-renewal
aliyun dds modify-instance-auto-renewal-attribute --db-instance-id <id> --auto-renew false --biz-region-id <region> --user-agent AlibabaCloud-Agent-Skills

Convert Instance Billing Type

Prerequisites: Instance status Running, and not a legacy spec (discontinued specs must be migrated to active specs first)
# Pay-As-You-Go → Subscription
aliyun dds transform-instance-charge-type --instance-id <id> --charge-type PrePaid --period 1 --pricing-cycle Month --auto-pay true --region <region> --user-agent AlibabaCloud-Agent-Skills
# Subscription → Pay-As-You-Go (no period needed, may involve refund)
aliyun dds transform-instance-charge-type --instance-id <id> --charge-type PostPaid --region <region> --user-agent AlibabaCloud-Agent-Skills

Manage Instance Maintenance Window

aliyun dds modify-db-instance-maintain-time --db-instance-id <id> --maintain-start-time "01:00Z" --maintain-end-time "02:00Z" --user-agent AlibabaCloud-Agent-Skills

Features Not Available via CLI

FeatureDescription
KMS instance activationAfter KMS instance creation, must be activated in KMS Console, configuring VPC/VSwitch
Free trial applicationMust apply on Alibaba Cloud Free Trial page

Verification Methods

See references/verification-method.md for details.

Best Practices

  1. Choose the same region as ECS, use VPC network to reduce network latency
  2. Multi-zone deployment for production (--secondary-zone-id + --hidden-zone-id)
  3. Storage type: ESSD PL2/PL3 for high performance, ESSD PL1/AutoPL for cost-sensitive scenarios
  4. Password: At least three of uppercase/lowercase/digits/special characters, 8-32 characters; sharded clusters require separate password reset for db and cs nodes
  5. Whitelist: 0.0.0.0/0 is prohibited in production; prefer Extend mode for whitelist modifications

References

ReferenceDescription
references/operations.mdDetailed CLI command examples, parameter tables, IOPS calculation spec tables
references/related-apis.mdComplete API and CLI command list with external documentation links
references/ram-policies.mdRAM permission policies
references/verification-method.mdVerification methods
references/cli-installation-guide.mdCLI installation guide
references/acceptance-criteria.mdTest acceptance criteria

平台分布

Codex

37.62%
按下载量换算82

Claude

29.87%
按下载量换算65

Cursor

18.48%
按下载量换算40

Gemini CLI

8.92%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills