惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
G
Google Developers Blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
V
Visual Studio Blog
博客园 - Franky
S
SegmentFault 最新的问题
Jina AI
Jina AI
爱范儿
爱范儿
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
C
Check Point Blog
月光博客
月光博客
P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
Martin Fowler
Martin Fowler

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - c3xdev/c3x: Open source cloud cost estimation fo...
cap_andrea · 2026-05-12 · via Hacker News: Show HN

C3X

Cloud cost estimation for Terraform, Terragrunt, and CloudFormation. Includes optimization recommendations, budget guardrails, what-if analysis, and fully offline mode. No API key required.

Docs Release License

C3X cost estimate output

Get started

brew install c3xdev/tap/c3x
c3x estimate --path /path/to/terraform

Or use Docker:

docker pull c3xdev/c3x
docker run --rm -v $(pwd):/workspace c3xdev/c3x estimate --path /workspace

See the quick start guide for more details.

Cost estimates

$ c3x estimate --path examples/terraform --usage-file examples/terraform/c3x-usage.yml

Project: main

 Name                                                        Monthly Qty  Unit              Monthly Cost

 aws_db_instance.postgres
 ├─ Database instance (on-demand, Multi-AZ, db.r5.large)             730  hours                  $365.00
 └─ Storage (general purpose SSD, gp3)                               200  GB                      $46.00

 aws_instance.api
 ├─ Instance usage (Linux/UNIX, on-demand, m5.xlarge)                730  hours                  $140.16
 ├─ root_block_device
 │  └─ Storage (general purpose SSD, gp2)                            100  GB                      $10.00
 └─ ebs_block_device[0]
    └─ Storage (general purpose SSD, gp3)                            500  GB                      $40.00

 aws_nat_gateway.main
 ├─ NAT gateway                                                      730  hours                   $32.85
 └─ Data processed                                        Monthly cost depends on usage: $0.045 per GB

 aws_lb.api
 ├─ Application load balancer                                        730  hours                   $16.43
 └─ Load balancer capacity units                          Monthly cost depends on usage: $5.84 per LCU

 OVERALL TOTAL                                                                                   $650.44

Cost diffs

$ c3x diff --path . --compare-to main

Project: main

 ~ aws_instance.api
   ├─ Instance usage (Linux/UNIX, on-demand, m5.xlarge -> m6i.2xlarge)    +$170.24 ($140.16 -> $310.40)
   └─ ebs_block_device[0]
      └─ Storage (general purpose SSD, gp3, 500 -> 1000 GB)               +$40.00 ($40.00 -> $80.00)

 Monthly cost change: +$210.24 ($650.44 -> $860.68)

Optimization recommendations

c3x recommend --path .
3 recommendation(s) found:

  1. Upgrade to newer instance generation (m5.xlarge -> m7i.xlarge)
     Resource: aws_instance.web (aws_instance)
     The m7i family has better price-performance than m5.

  2. Switch EBS volume from gp2 to gp3
     Resource: aws_ebs_volume.data (aws_ebs_volume)
     gp3 volumes are up to 20% cheaper with better baseline performance.

  3. Consider VPC endpoints to reduce NAT Gateway costs
     Resource: aws_nat_gateway.main (aws_nat_gateway)
     NAT Gateway charges $0.045/GB. VPC endpoints can eliminate these charges.

Budget guardrails

Enforce cost limits in CI/CD pipelines. No paid subscription required.

c3x estimate --path . --budget 1000
c3x diff --path . --compare-to baseline.json --budget-increase 20

What-if analysis

Test cost impact of changes without modifying Terraform code.

c3x estimate --path . --what-if 'aws_instance.web.instance_type=m6i.8xlarge'
c3x estimate --path . --what-if 'aws_db_instance.main.multi_az=true'

PR comments

Post cost estimates in pull requests. Two steps, no secrets.

- uses: actions/checkout@v4
- uses: c3xdev/setup-c3x@v1
  with:
    path: .

Install the C3X Cloud app for branded comments with the C3X logo. See a live example. Also supports GitLab, Bitbucket, Azure Repos, Atlantis, and Spacelift.

Offline mode

Download pricing data once. Estimate without network calls.

c3x pricing sync --providers aws,azure
c3x estimate --path . --offline

Self-hosted pricing API

Run your own pricing API that scrapes directly from AWS, Azure, and GCP.

export C3X_PRICING_API_ENDPOINT=http://localhost:4000
c3x estimate --path .

Supported resources

Over 1,100 Terraform resources across AWS, Azure, and Google Cloud. Usage-based resources (Lambda, S3, data transfer) are supported via usage files.

Roadmap

  • Compare estimates to real cloud bills (AWS Cost Explorer, Azure Cost Management)
  • Pulumi, AWS CDK, Azure Bicep support
  • Historical cost tracking across commits and PRs
  • VS Code and JetBrains inline cost estimates

Contributing

Open a thread in GitHub Discussions before submitting a PR. See the contribution guide for details.

License

Apache License 2.0