alibabacloud-cli-cost-estimation

Featured

Pre-execution cost estimation for Alibaba Cloud CLI operations. Use this skill whenever a user asks "how much will this cost", before executing any chargeable operation (create / resize / renew / bandwidth change), or when planning a multi-step workflow whose total cost should be known up front. Covers the --estimate-cost flag (quote without executing), --estimate-cost-context (usage assumptions and future-state overrides for multi-step workflows), reading the quote JSON correctly (pricingMode, pricingUnit, delta amounts), and reconciling quotes against actual bills.

DevOps & Infrastructure 27 stars 13 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 89/100

Stars 20%
48
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Alibaba Cloud CLI Cost Estimation Get an exact price quote for a CLI operation **without executing it**. The quote comes from the same pricing source as the trade system: for operations that produce an immediate order, the quoted amount equals the order amount you would actually pay (verified across new purchases, spec upgrades, and bandwidth changes — quote and bill match to the cent). This is the **pre-execution** half of cost management. The post-hoc half (bills already incurred) is `aliyun bssopenapi QueryAccountBill` — see the reconciliation section below. ## Requirements - Alibaba Cloud CLI ≥ 3.4.2 (`aliyun version`) - Product plugins up to date (`aliyun plugin update`) ## The Agent Rule: Quote Before Chargeable Execution When you are about to execute an operation that creates, resizes, renews, or otherwise changes billable resources: 1. **Check** whether the API supports quoting (see Discovery below). 2. **Quote** it by appending `--estimate-cost` to the exact command you intend to run. 3. **Present** the amount to the user as part of the confirmation, e.g. "This will execute `ModifyPrepayInstanceSpec` — estimated charge ¥28.89 (prorated upgrade delta). Proceed?" 4. **Execute** only after confirmation, by removing `--estimate-cost` from the same command. Never silently execute a chargeable operation when a quote was obtainable. `--estimate-cost` is always safe to add: it only quotes, never executes, and changes nothing in the account. **Multi-ste...

Details

Author
aliyun
Repository
aliyun/alibabacloud-agent-toolkit
Created
3 months ago
Last Updated
5 days ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Solid

alibabacloud-ecs-scenario-ops

Alibaba Cloud ECS scenario-based operations. Use for end-to-end operational scenarios that combine multiple ECS operations into complete workflows: full-stack instance provisioning (VPC + SecurityGroup + Instance), disk expansion with OS resize, adding data disks with formatting, instance migration, and batch operations. Triggers: "create full instance", "provision ecs", "expand disk and resize partition", "add data disk", "format disk", "ecs migration", "batch ecs operations", "ecs scenario", "full stack ecs", "instance with network".

27 Updated 5 days ago
aliyun
DevOps & Infrastructure Listed

huawei-cloud-cost-estimation

Generates Huawei Cloud pre-order estimates, provisions allowlisted resources through hcloud, and routes unsubscribe requests to console guidance. Use for Huawei Cloud pricing, budgets, creation, provisioning, or unsubscribe. Creates require runtime help, --dryrun, fee review, and confirmation. Never emits or runs unsubscribe operations, accepts credentials, or performs non-allowlisted writes.

3 Updated 1 weeks ago
concept-git
DevOps & Infrastructure Solid

alibabacloud-ecs-disk-ops

Alibaba Cloud ECS disk and snapshot operations. Use for managing cloud disks (attach, detach, expand, create data disk), snapshots (create, restore, delete, policy), and disk category management. Covers system disk and data disk lifecycle. Triggers: "ecs disk", "cloud disk", "attach disk", "detach disk", "expand disk", "data disk", "snapshot", "create snapshot", "restore snapshot", "disk resize", "disk capacity", "auto snapshot policy".

27 Updated 5 days ago
aliyun