Skip to content

feat: add c5.4xlarge, r5.2xlarge, r5.4xlarge to ledger + saas-demo fi…#23

Merged
omrdev1 merged 1 commit intomainfrom
feat/v0.7.0-phase4
Apr 5, 2026
Merged

feat: add c5.4xlarge, r5.2xlarge, r5.4xlarge to ledger + saas-demo fi…#23
omrdev1 merged 1 commit intomainfrom
feat/v0.7.0-phase4

Conversation

@omrdev1
Copy link
Copy Markdown
Owner

@omrdev1 omrdev1 commented Apr 5, 2026

…xture

  • Add three missing instance types to factors.json (power, embodied CO2e)
  • Add pricing for all applicable regions including eu-north-1 r5 entries
  • Add fixtures/tfplan.saas-demo.json — 10-instance realistic SaaS stack (web ×2, API ×3, DB ×2, workers ×2, cache ×1, all us-east-1)

Summary

Type of change

  • Bug fix
  • New instance type / region coverage
  • New feature
  • Documentation update
  • Tooling / dependency update

Checklist

  • npm test passes locally (all 50+ tests green)
  • npx tsc --noEmit passes (zero type errors)
  • npm run build produces no warnings
  • node dist/index.cjs diff fixtures/tfplan.e2e.json --format table produces live output
  • No credentials, tokens, API keys, or account IDs committed
  • New instance/region entries include a test case with a math trace comment
  • Commit messages follow Conventional Commits format

Testing

Related issues

…xture

- Add three missing instance types to factors.json (power, embodied CO2e)
- Add pricing for all applicable regions including eu-north-1 r5 entries
- Add fixtures/tfplan.saas-demo.json — 10-instance realistic SaaS stack
  (web ×2, API ×3, DB ×2, workers ×2, cache ×1, all us-east-1)
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

🌱 GreenOps Infrastructure Impact

Metric Monthly Total
🔋 Scope 2 — Operational CO2e 4.74kg
🏭 Scope 3 — Embodied CO2e 1.88kg
🌍 Total Lifecycle CO2e 6.61kg
💧 Water Consumption 5.9L
💰 Infrastructure Cost $132.86/month

Potential Scope 2 Savings: -4.33kg CO2e/month (91.3%) | -$8.03/month
💡 Found 1 optimization recommendation.

Resource Breakdown

Resource Type Region Scope 2 CO2e Scope 3 CO2e Water Cost/mo Action
google_compute_instance.api n2-standard-2 us-central1 4.57kg 1.04kg 4.9L 70.81 💡 View Recommendation
google_compute_instance.worker t2a-standard-2 europe-north1 0.17kg 0.83kg 1.0L 62.05 ✅ Optimal

Recommendations

google_compute_instance.api

  • Current: n2-standard-2 in us-central1
  • Suggested: n2-standard-2 in europe-north1
  • Scope 2 Impact: -4.33kg CO2e/month | +$8.03/month
  • Rationale: Moving n2-standard-2 from us-central1 to Finland (europe-north1) reduces grid carbon intensity from 340g to 18g CO2e/kWh, saving 4327g CO2e/month (note: cost increases by $8.03/month). Water consumption also decreases by 3.4L/month.

Emissions calculated using the Open GreenOps Methodology Ledger v2.0.0. Scope 2 (operational) and Scope 3 (embodied) emissions tracked. Water consumption estimated from provider sustainability reports (AWS 2023, Microsoft 2023, Google 2023). Math is MIT-licensed and auditable. Analysed at 2026-04-05T16:52:51.899Z.

🏢 GreenOps Dashboard — aggregate carbon trends across all your repositories and export ESG reports. Get started free

@omrdev1 omrdev1 merged commit 7b7b34c into main Apr 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant