All notable changes to the CUDly CLI are documented in this file. The format is based on Keep a Changelog.
archera-comparisoncommand: a read-only, default-off comparison of an Archera commitment plan (table or JSON). Seedocs/cli/archera-comparison.md(#2156).archera-recommendation-quotecommand: a read-only, default-off Archera quote for one recommendation, shown only on an exact match (table or JSON). Seedocs/cli/archera-recommendation-quote.md.--ri-account-scopeflag (linkeddefault,payer) for Reserved Instance recommendations, mirroring--sp-account-scope(#2181).
- Bumped
cloud-commitments-go(pkg and the AWS, Azure and GCP providers) to e0d8a7e. Behavior you can see:- The rebuy expiry adjustment now fails closed: an expiring commitment with an unknown service or EC2 size fails the run instead of being skipped.
- Savings Plans purchases first confirm a stored offering id with a
read-only
DescribeSavingsPlansOfferingscall and refuse a mismatch. - ElastiCache coverage and expiry pools are keyed by cache engine, so the
Cost Explorer coverage request gains a
CACHE_ENGINEgroup. - MemoryDB calls use the rpc-v2-cbor protocol through its newer SDK.
- The duplicate-purchase check starts every term and payment variant from the full held quantity, counts RDS size-flexible reservations in units and EC2 size-flexible ones in normalized units; counts only go down or stay.
- A fractional Cost Explorer quantity now rounds down instead of half up and
its upfront, savings and on-demand figures scale with the bought count; a
row that rounds to 0 carries no savings percentage and is dropped by
--min-savings-pct. Example for quantity 2.5: count 3 became 2, upfront 2500 became 2000. - Purchases fail closed when several EC2 reservations carry the same idempotency token, when a Redshift node belongs to another purchase lineage, or when a count does not fit int32.
-
Bump Go to 1.26.10 to pick up the fix for GO-2026-6809 (crypto/x509), which
govulnchecknow reports against 1.26.9. -
--max-instancesdrop summary: a zero-Count recommendation swept out by the--min-countfloor no longer drives the tally negative (which panicked inDropSummary.Add), and removed zero-Count entries are now counted and named (#1742). -
--target-coverageRDS recommendations now report aProjectedCoveragethat matches the final count after--max-instances,--count-overrideor the duplicate-RI check lowered it, instead of the pre-cap family value (#2214). -
--max-instancesand--min-countno longer apply to Savings Plans, whose Count of 1 is not an instance count: a Savings Plan neither uses up the instance cap nor is dropped by the floor (#1613). -
configure-azureandconfigure-gcpnow fail when listing the credentials secret fails (for example access denied) instead of proceeding to the update and looking successful;ListSecretsalso reads every result page (#1613). -
configure-azure --client-secretis deprecated (it still works): omit it and enter the secret at the interactive prompt (#1613). -
The
configure-azurehelp no longer shows--client-secretin its example; the client secret is read from the interactive prompt (#1613). -
configure-azureandconfigure-gcpnow store credentials in the secret whose name matches exactly instead of the first prefix match from Secrets Manager (which could be<name>-old), and fail when two secrets share the name (#1613). -
The RDS engine-version scan now stops on cancellation and fails with an error naming the region after 200 pages of
DescribeDBInstancesinstead of paging without bound (#1613). -
configure-azureno longer creates the Entra app, client secret and role assignment when you press Enter at the create-service-principal prompt; Enter now skips, as in the GCP wizard (#1613). -
--input-csvnow rejects a row whoseServicecell is not one of the service names the CSV report writes (for example the--servicesaliaselasticsearch,RDSorrdswith a trailing space), and aCountabove 10000, failing the load with the row and column. Such a row used to load and then be skipped mid-run with "Service client not yet implemented" (#379). -
Savings Plans purchases now send the hourly commitment truncated to 5 decimals (at least 2 shown) instead of rounded to cents, and accept amounts from 0.001 to 1,000,000, so a 0.001 to 0.004 commitment is no longer rejected (library bump, #2235).
-
--target-coveragewith--rebuy-window-daysno longer buys replacement EC2 and other non-RDS RIs again when they were already bought inside the coverage lookback: the expiring RIs are netted against those replacements (#2235). -
--rebuy-window-dayswith--target-coveragenow refuses to run (exit 1, no CSV, dry runs included) when the credentials' account does not own all the in-scope RI usage, instead of netting one account's expiring RIs against broader demand. Member accounts of an AWS Organization are refused. A failed STS lookup, role check, scope probe (new Cost ExplorerGetReservationCoveragequery grouped by linked account) or RI inventory read also exits 1 on these runs. These runs now need the read-onlyorganizations:DescribeOrganizationpermission (#2131). -
--min-savings-pctand--max-break-even-monthsnow apply on--input-csvruns instead of being refused. The CSV report gainsSavingsPercentageandBreakEvenMonthscolumns; replaying a report that lacks a column a set flag needs (or has it blank) fails with an error naming the flag, never reading the missing figure as 0. When present, theSavingsPercentageandBreakEvenMonthscolumns are now parsed strictly (an invalid value fails the load) even when the threshold flags are unset.--max-instancesstill ranks on savings per instance (#1819). -
Zonal EC2 rows now keep their Availability Zone through the CSV report and
--input-csv: reports gain anAvailabilityZonecolumn, appended afterScope(blank for regional rows and other services). A dry run now refuses a zonal EC2 row without an AZ, or a regional row that names one, the same way the real run does, instead of reporting success. A zonal row from a CSV written before this column existed is refused until its AZ is added (#2174). -
Recommendations with no account ID or name are now reported in the drop summary when an account filter (
--include-accountsor--exclude-accounts) removes them (#1613). -
A dry run now refuses an EC2 Instance Savings Plan that has no instance family and no offering ID, the same way the real run does, instead of reporting success for a purchase the offering lookup would reject (#2164).
-
A purchase result with
Success=trueand a non-nilErroris now treated as a failure in the Ctrl-C summary, the audit-stop message, the per-service success/failed counts and the non-zero exit. The CSVSuccesscolumn keeps the raw provider flag; read theErrorcolumn alongside it (#2205). -
configure gcp: pressing Enter at a[r]un, [S]kip (default)?step now skips instead of creating the service account, granting roles, minting a key or runninggcloud auth login; typerto run a step (#1613). -
configure gcpkey cleanup: the minted key is now deleted when the upload panics, a second Ctrl-C aborts the cleanup, the local key file is removed first, and a possibly orphaned key is reported whenCreateKeyfails ambiguously (cancellation, timeout, 5xx or network error), with thegcloudcommands to list and delete it (#2117). -
--min-savings-pctnow rejects values below 0 or above 100 at validation. Previously a negative value was accepted as no filter and a value above 100 silently dropped every recommendation (#2161). -
Replaying or retrying an
--input-csvpurchase no longer re-buys an ElastiCache or MemoryDB reservation that the first run already bought: CSV rows now carry the AWS provider, and MemoryDB rows use the engine AWS reports for existing nodes whatever the CSV says, so the duplicate check matches them. CSV Savings Plan rows also now match--include-regionsand--exclude-regionson their plan region (#2228). -
configure-gcp: skipping (or giving an unknown answer at) the "Create Service Account" step no longer continues with the defaultcudly-service-account@<project>email that was never created. The wizard now asks for the existing service account email, validates it as a*.gserviceaccount.comaddress, and uses it for the role grant and key steps (#2211). -
When
--max-instances,--count-overrideor the duplicate-RI check lowers a recommendation's count,ProjectedCoverageandProjectedUtilizationare re-derived for the new count instead of reporting the figures sized for the original count. This applies to RI rows with a usage signal;ProjectedCoverageis only re-derived when existing coverage is known. Savings Plans and projections that were never computed are left as they are. The RedshiftNumberOfNodesnow follows the count, including after--coverageand--target-coveragesizing. RDSProjectedCoverageis a family-wide figure and is not re-derived yet; see issue #2214 (#2206). -
An explicit
--outputpath that already exists (file, directory or symlink) is now refused during validation instead of being silently truncated. Choose a new path or remove the old file; scripts that reuse one path must do the same. Auto-generated filenames are unaffected (#2050). -
--regionsnow also narrows EC2 Instance Savings Plan recommendations to the listed regions by the plan's own region (previously only--include-regionsdid); a plan with no known region is dropped. Compute, SageMaker and Database plans stay unfiltered. In--input-csvmode--regionsstill does not narrow Savings Plans (rows are used as supplied). -
A
--purchaserun now stops, and exits 1, when an audit record cannot be written durably (disk full, log removed or made unwritable mid-run) instead of warning and buying more with no audit trail. The audit log is also probed before each real purchase, so a log that broke after the start-of-run check stops the run before buying. The report and summary for what already ran are still written, and the message says how many recommendations were attempted and to verify in AWS before re-running. Applies to the main pipeline and--input-csv; dry runs still only warn (#2103). -
Stop silently disabling the extended-support exclusion when AWS queries fail. A failed engine lifecycle query or region listing now aborts the run before any purchase; an RDS recommendation in a region whose instance inventory could not be read aborts it too, while other regions proceed with a warning. The queries are skipped entirely under
--include-extended-supportor when no RDS recommendations are in scope (#2147). -
Ctrl-C now cancels the whole invocation instead of only setting a flag that was polled between purchases. The engine-version lifecycle queries, region discovery, recommendation fetch, coverage fetch and duplicate checks treat a canceled or expired context as terminal (the run stops and buys nothing) instead of continuing with empty lifecycle data, "no recommendations" or un-deduplicated counts. A purchase already in flight is not aborted: it finishes, is written to the audit log (before the delay between purchases, which the
--input-csvpath used to run first), and the report and an "interrupted: N of M attempted" summary are still produced. Errored purchases in an interrupted run are flagged "verify in AWS before re-running". Further Ctrl-Cs are absorbed; Ctrl-\ force-quits and may lose the in-flight audit record (#2151). -
Reject NaN and infinite values for
--coverage,--target-coverage,--min-pool-sizeand--min-savings-pctbefore any API call. NaN used to pass validation and silently switch--target-coverageruns to--coveragesizing (#2136). -
--include-accountsand--exclude-accountsare both exact now: they match the account name or ID exactly (case-insensitive, surrounding whitespace ignored) instead of by substring. Previously--include-accounts devalso selecteddevops-prod, so a purchase run could buy in accounts that were not named. Behavior change: anyone relying on substring matching must now list the full account names or IDs. An--exclude-accountsvalue that matches no account exactly but is part of account names now stops the run, naming those accounts, instead of being applied as a substring (#2237).
--coverage-lookback-daysis now capped at 365 for every--target-coveragerun, not only gated rebuy runs; values from 366 up to about 395, previously accepted, are now rejected. The gated rebuy scope probe also starts two days earlier than the longer lookback window, so it can only refuse more.- Bump cloud-commitments-go to dcb5ba0: Azure reservation purchases use one
shared helper with aligned guards, error messages and display names, and hold
the shared concurrency slot per call instead of per batch; the AWS provider
gains a configurable account scope for RI purchase recommendations and an
exported
RederiveFamilyCoveragefor post-sizing count changes. - Bumped
cloud-commitments-go(pkg and the aws, azure and gcp providers) tocfe8ac29. User-visible effects: recommendations reported in a non-USD currency are skipped at ingestion and the skip is reported; RDS SQL Server RIs are sized per instance size; GCP no longer emits Cloud SQL and Memorystore CUD recommendations from the performance recommenders; Azure Savings Plan purchases refuse a malformed idempotency token (#1613). - BREAKING:
--input-csvnow requiresTermandPaymentOptioncolumns in addition toService,Region,ResourceTypeandCount.Termmust be1yror3yrandPaymentOptionmust beall-upfront,partial-upfrontorno-upfronton every row. CSVs with only the older four columns, or with a blank or unknown value, now fail to load with an error naming the missing column or the row. - Split the CLI out of the CUDly monorepo into its own module,
github.com/LeanerCloud/cloud-commitments-cli. The shared client and provider code it depends on now lives ingithub.com/LeanerCloud/cloud-commitments-go, pinned ingo.mod. History predating the split lives in the monorepo's changelog.