Repository navigation
Releases
v0.3.0
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 regionslists them. - Each resource is priced with the snapshot of its own region, taken from the plan: the
regionattribute (provider 6.x), the provider configuration (a constant orregion = var.regionof 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. --regionnow names the region of the resources whose region the plan does not state (default: the only--pricingfile, else the only region the plan names, else us-east-1). Aregion_assumedwarning 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 aregion_mismatchwarning names the fix. --pricingis 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,kubernetesleaves 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,regionandsnapshots; Markdown totals are unchanged. aws_eks_clusterdoes not pricecontrol_plane_scaling_config.tieryet; 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.txtv0.2.0
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.txtv0.1.1
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.txtv0.1.0
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