Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:24
075ade8

What's new since v0.2.0

Findings of an evaluation on a real EKS Auto Mode workshop cluster (us-west-2, 205-resource plan), and a decision to cover every AWS region.

Every region, each resource in its own region (#8, #10)

  • The binary embeds the price snapshots of all 36 regions of the public AWS Price List (34 commercial, 2 GovCloud), gzip, 1.8 MB in total. costgate pricing regions lists them.
  • Each resource is priced with the snapshot of its own region, taken from the plan: the region attribute (provider 6.x), the provider configuration (a constant or region = var.region of the root module), the resource's ARN, or the ARNs of the other resources of the same provider configuration. A plan that spans regions is priced in one run, without a flag.
  • --region now names the region of the resources whose region the plan does not state (default: the only --pricing file, else the only region the plan names, else us-east-1). A region_assumed warning counts those resources when you did not choose the region.
  • A resource in a region costgate has no snapshot of (China) is unpriced with reason region, and a region_mismatch warning names the fix.
  • --pricing is repeatable and reads .json.gz.

Coverage (#8)

  • aws_eks_cluster: control plane, extended support and the EKS Auto Mode fee (by premise, auto_mode_instance_hours).
  • gp3 IOPS above 3000 and throughput above 125 MiB/s.
  • Resources of other providers are unpriced with reason provider; --ignore-provider helm,kubectl,kubernetes leaves them out of the estimate and the gate and lists them.

HTML report (#9): --html-out <file> writes one self-contained page (inline data, Content-Security-Policy: default-src 'none', no network): bars by module and type, a filterable resource table with the bill keys, unpriced resources by reason, premises, regions, and a CSV or JSON Lines export of the filtered lines.

JSON report (schema_version 1, additive only): unpriced_reason per side; warnings[]; ignored_providers and ignored[]; snapshots[] and resources[].region / region_assumed. JSON Lines cost lines carry the snapshot that priced them, with costgate.warning and costgate.ignored documents when they apply.

Price refresh: the weekly workflow refreshes all regions and opens a PR only when a price changes. A pricing rule with no price in a region is a warning (the resource is then unpriced with reason price); --strict makes it an error and runs on us-east-1.

Notes

  • A resource in a region without a snapshot blocks the gate when created, even when its type would cost nothing (a public ACM certificate). With every Price List region embedded, this only applies to China regions.
  • Goldens: the existing JSON goldens gained unpriced_reason, region and snapshots; Markdown totals are unchanged.
  • aws_eks_cluster does not price control_plane_scaling_config.tier yet; a tier changed outside Terraform is not in the plan.
  • Local Zones and Wavelength Zones are priced as their parent region.

Verify

Binaries for darwin/linux on arm64/amd64. Verify before use:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp '^https://github.com/leosavio/costgate/.github/workflows/release.yml@refs/tags/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 18:16

Binaries for darwin/linux on arm64/amd64. Verify before use:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp '^https://github.com/leosavio/costgate/.github/workflows/release.yml@refs/tags/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 03 Nov 04:46

Binaries for darwin/linux on arm64/amd64. Verify before use:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp '^https://github.com/leosavio/costgate/.github/workflows/release.yml@refs/tags/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 03:53

Binaries for darwin/linux on arm64/amd64. Verify before use:

cosign verify-blob --bundle checksums.txt.sigstore.json \
  --certificate-identity-regexp '^https://github.com/leosavio/costgate/.github/workflows/release.yml@refs/tags/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums.txt
sha256sum -c --ignore-missing checksums.txt