Loading...
Loading...
Alicloud Service Scenario-Based Skill. Create Tair Enterprise Edition instance and configure public network access using Aliyun CLI. Triggers: "tair", "create tair instance", "tair instance".
npx skill4agent add aliyun/alibabacloud-aiops-skills alibabacloud-tair-devtoolsetVPC + VSwitch + Tair Enterprise Instance + Public EndpointPre-check: Aliyun CLI >= 3.3.1 required Runto verify >= 3.3.1. If not installed or version too low, seealiyun versionfor installation instructions. Then [MUST] runreferences/cli-installation-guide.mdto enable automatic plugin installation.aliyun configure set --auto-plugin-install true
# Verify CLI version
aliyun version
# Enable automatic plugin installation
aliyun configure set --auto-plugin-install true
# Verify jq
jq --versionbrew install jq # macOSPre-check: Alibaba Cloud Credentials RequiredAll credential configurations follow existing aliyun CLI settings, no separate configuration needed in scripts.Security Rules:
- NEVER read, echo, or print AK/SK values (e.g.,
is FORBIDDEN)echo $ALIBABA_CLOUD_ACCESS_KEY_ID- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
with literal credential valuesaliyun configure set- ONLY use
to check credential statusaliyun configure listbashaliyun configure listCheck the output for a valid profile (AK, STS, or OAuth identity).If no valid profile exists, STOP here.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
in terminal or environment variables in shell profile)aliyun configure- Return and re-run after
shows a valid profilealiyun configure list
| RAM Action | Description |
|---|---|
| Create Tair instance |
| Query instance status |
| Modify IP whitelist |
| Allocate public endpoint |
| Query network info |
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
to get the full list of permissions required by this SKILLreferences/ram-policies.md- Use
skill to guide the user through requesting the necessary permissionsram-permission-diagnose- Pause and wait until the user confirms that the required permissions have been granted
IMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks, passwords, domain names, resource specifications, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.
| Parameter | Required | Description | Default |
|---|---|---|---|
| VPC_ID | Yes | VPC ID, e.g. | — |
| VSWITCH_ID | Yes | VSwitch ID, e.g. | — |
| REGION_ID | No | Region ID | |
| ZONE_ID | No | Zone ID | |
| INSTANCE_TYPE | No | Instance series | |
| INSTANCE_CLASS | No | Instance specification | |
| INSTANCE_NAME | No | Instance name | |
| InstanceClass | Memory | Bandwidth | Max Connections | QPS Reference |
|---|---|---|---|---|
| tair.rdb.1g | 1 GB | 768 Mbps | 30,000 | 300,000 |
| tair.rdb.2g | 2 GB | 768 Mbps | 30,000 | 300,000 |
| tair.rdb.4g | 4 GB | 768 Mbps | 40,000 | 300,000 |
| tair.rdb.8g | 8 GB | 768 Mbps | 40,000 | 300,000 |
| tair.rdb.16g | 16 GB | 768 Mbps | 40,000 | 300,000 |
| tair.rdb.24g | 24 GB | 768 Mbps | 50,000 | 300,000 |
| tair.rdb.32g | 32 GB | 768 Mbps | 50,000 | 300,000 |
| tair.rdb.64g | 64 GB | 768 Mbps | 50,000 | 300,000 |
[MUST] Execution Constraints
- MUST and ONLY use
script to complete instance creation, whitelist configuration, public endpoint allocation, etc.scripts/create-and-connect-test.sh- DO NOT bypass the script to directly call
CLI commands for the above operationsaliyun r-kvstore- DO NOT write or concatenate aliyun CLI commands to replace script functionality
- Model's responsibility is: collect parameters → set environment variables → run script. No improvisation allowed.
export VPC_ID="<user-confirmed VPC_ID>"
export VSWITCH_ID="<user-confirmed VSWITCH_ID>"
# Optional parameters
export REGION_ID="cn-hangzhou"
export ZONE_ID="cn-hangzhou-h"
export INSTANCE_TYPE="tair_rdb"
export INSTANCE_CLASS="tair.rdb.1g"
# For NAT environment, manually set public IP
# export MY_PUBLIC_IP="your-public-ip"
bash scripts/create-and-connect-test.shaliyun r-kvstore describe-instance-attribute \
--instance-id "${INSTANCE_ID}" \
--user-agent AlibabaCloud-Agent-SkillsInstanceStatusNormal| Issue | Solution |
|---|---|
| Connection timeout | Check if whitelist includes current public IP (must be IPv4) |
| Public endpoint empty | Confirm |
| Reference | Description |
|---|---|
| references/cli-installation-guide.md | Aliyun CLI Installation and Configuration Guide |
| references/ram-policies.md | RAM Permission Policy Document |
| references/related-commands.md | Related CLI Commands and Parameters |
| references/verification-method.md | Success Verification Method |
| references/acceptance-criteria.md | Acceptance Criteria |