Skip to content

costerra v0.3.1

Choose a tag to compare

@github-actions github-actions released this 18 Oct 19:49
· 7 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.3.1
0dfbb33

Added

  • Several outputs in one run: --format takes FORMAT[:FILE] and can be
    repeated or comma-separated, e.g. --format table,markdown:costerra.md
    prints the table in the CI log and writes the MR comment to a file. At most
    one format goes to stdout (or to --out). A table written to a file has no
    colors. console is an alias of table.
  • costerra completions <shell>: completion scripts for bash, zsh, fish,
    elvish, powershell, nu and xonsh. The Homebrew formula installs the bash,
    zsh and fish completions.
  • Colored --help and usage errors (off with NO_COLOR).

Fixed

  • costerra diff: a root module with one project per environment
    (environments/*.tfvars) was named after the temporary checkout on the
    base side (costerra-base-XXXXXX (dev)), so every environment showed as
    removed and added. The base checkout now has the same repository root as
    the head one, which also fixes get_repo_root() and the discovery of
    costerra.yml and costerra-usage.yml on the base side.
  • --rightsize: when the same value is set in several module calls, the
    line in the module call of the resource is kept (module "web_proxy"),
    instead of every line with a matching entry. The note names the blocks of
    the remaining lines rather than (in ?, ?).
  • --rightsize: a cost after rightsizing that rounds to zero is shown as
    $0.00, not -$0.00.
  • Contract prices: when the billing account is detected but its prices are
    refused (HTTP 403), costerra now prints a single-line warning, uses list
    prices and does not ask again for 6 hours. Before, every run downloaded the
    whole price list again and printed the raw API error. The error now names
    the permission the bulk download checks (billing.billingAccountPrices.list).
  • --format markdown: projects are named as in the terminal table
    (terraform (prod) rather than . (prod)), and the rightsizing section
    comes before the footer.