osinfra-io / google-cloud-kubernetes

Infrastructure as Code (IaC) example for Google Cloud Platform Kubernetes resources.
https://www.osinfra.io
GNU General Public License v2.0
1 stars 0 forks source link

Enable Infracost template and sync usage file with pre-commit #7

Closed brettcurtis closed 11 months ago

brettcurtis commented 11 months ago

Fixes #4

infracost[bot] commented 11 months ago

Infracost report

💰 Monthly cost will increase by $8 📈

Project Cost change New monthly cost
global/infra: non-production +$3 (+100%) $5
global/infra: production +$5 (+200%) $8
Cost details ``` ────────────────────────────────── Project: global/infra: non-production Module path: global/infra ~ module.project.google_logging_project_sink.cis_2_2_logging_sink +$3 ($3 → $5) ~ Logging data +$3 ($3 → $5) Monthly cost change for global/infra: non-production (Module path: global/infra) Amount: +$3 ($3 → $5) Percent: +100% ────────────────────────────────── Project: global/infra: production Module path: global/infra ~ module.project.google_logging_project_sink.cis_2_2_logging_sink +$5 ($3 → $8) ~ Logging data +$5 ($3 → $8) Monthly cost change for global/infra: production (Module path: global/infra) Amount: +$5 ($3 → $8) Percent: +200% ────────────────────────────────── Key: ~ changed, + added, - removed 102 cloud resources were detected: ∙ 3 were estimated, all of which include usage-based costs, see https://infracost.io/usage-file ∙ 96 were free, rerun with --show-skipped to see details ∙ 3 are not supported yet, rerun with --show-skipped to see details Infracost estimate: Monthly cost will increase by $8 ↑ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ ┃ Project ┃ Cost change ┃ New monthly cost ┃ ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━┫ ┃ global/infra: non-production ┃ +$3 (+100%) ┃ $5 ┃ ┃ global/infra: production ┃ +$5 (+200%) ┃ $8 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━┛ ```

Governance checks

❌ 1 blocking failure
25% Increases Monthly Cost
Cost increased by $8 (100%), threshold was 25%.
🟢 49 passed
48 FinOps policies, 1 Tagging policy, and 0 Guardrails passed.

View in Infracost Cloud. This comment will be updated when code changes.