档案库 · 开发与企业工具 · 战略决策 · 2021–2026
Infracost 押注:如果工程师在部署前看到云成本,他们就会削减开支
YC W21 创业公司 Infracost 在资源启动前于拉取请求中展示 Terraform 成本估算;2022 年 Show HN 获得 121 分,仓库显示 12.5k 星。
Infracost
做的是什么生意
Infracost is an open-source cloud cost intelligence company: it parses Terraform, CloudFormation, AWS CDK and Terragrunt to estimate what infrastructure changes will cost, surfaces estimates in terminals, editors, AI coding agents and pull requests, and sells Infracost Cloud for FinOps policies.
起因
Ali, Hassan and Alistair launched the first version of Infracost in February 2021 after concluding that the people purchasing cloud resources are not shown costs upfront, so nobody knows what resources will cost before launching them. The first Show HN (item 26064588) introduced a free open-source CLI that parses Terraform and posts cost diffs in pull requests; the founders said they had lived the same bill shock and pointed to Netflix, Slack and Segment adopting developer-focused cost management.
经过
In the 2022-01-26 Show HN the founders reported the surprise: individual engineers were not pulling the tool in, senior DevOps, SRE and platform teams were integrating it while engineers consumed the pull-request cost comments. By then the community maintained mappings for over 200 resources, integrations covered Spacelift, OPA, GitHub Actions, GitLab and Azure DevOps, and Infracost had partnered with HashiCorp on Terraform Cloud Run Tasks, then in beta. By the 2026-09-05 snapshot the project had become Infracost 2.0: CLI, IDE language-server extensions, Infracost Cloud with tagging and FinOps guardrails, AI coding agent skills, and support for over 1,100 resources across AWS, Azure and Google Cloud.
还没有结局,它还在跑。
背景
Infracost 是一家来自 Y Combinator W21 批次的开源云成本智能公司。其 CLI 解析基础设施即代码,估算变更在资源启动前将花费多少,并将数字作为拉取请求评论发布,商业云产品在顶层提供 FinOps 策略。
创始人于 2021 年 2 月推出第一个版本,基于观察:购买云资源的人不会预先看到成本,因此没有人知道启动前的账单。赌注是,在代码阶段向工程师展示月度影响会改变他们部署的内容,并且开源工具通过工程团队传播会比企业销售更快。
2022-01-26 的 Show HN 获得了 121 分和 28 条评论,记录了创始人的经验:高级 DevOps、SRE 和平台团队是集成者,将 Infracost 引入公司工作流程,而工程师是看到成本评论的人。社区维护的定价映射覆盖了 200 多个资源,集成已包括 Spacelift、OPA、GitHub Actions、GitLab 和 Azure DevOps,以及与 HashiCorp 在 Terraform Cloud Run Tasks 上的合作。
截至 2026-09-05 快照,Infracost 仍在发布:项目已重构为 Infracost 2.0 工具包,涵盖 CLI、IDE 扩展、AI 编码代理技能和 Infracost Cloud,GitHub 仓库显示 12.5k 星、686 个分叉和 3,184 次提交。
这件事要成立,得有什么
- 痛点可衡量且普遍:工程师在月度账单中才发现云成本,定价数据不透明,以至于创始人十年前抓取了 10,000 个价格点,而当时跟踪 300 万个。
- 开源假设可测试且已测试:2021 年的发布假设工程师会引入该工具,而 2022 年的发布报告平台团队实际进行了集成。
- 左移符合已验证的剧本:创始人将开发工作流中的成本检查比作 Snyk 将安全检查移至编写代码的地方。
- 集成使工具融入现有工作流,而不是要求团队改变,从 Terraform 和 Terragrunt 到 GitHub、GitLab、Atlantis 和 CI 系统。
可借鉴之处
开源让工具被采用,但采用需要所有者:Infracost 发现平台团队而非工程师将成本检查引入 CI,因此它面向集成者构建。
后续进展
截至 2026-09-05 快照,Infracost 仍在运营:GitHub 前门描述了 Infracost 2.0 工具包,包括 CLI、IDE 扩展、AI 编码代理技能以及带有标记策略和护栏的 Infracost Cloud,声称支持 AWS、Azure 和 Google Cloud 上的 1,100 多个资源。12.5k 星、686 个分叉和 3,184 次提交来自同一快照。此处审查的来源中没有出现资金或收入数字,因此本条目报告产品轨迹而非估值。
资料来源
- Show HN: Infracost (YC W21) – Open-source cloud cost policies
- Show HN: Infracost – Show cloud costs in Terraform pull requests (first launch)
发现哪里写错了?告诉我们。
轮到你了
你刚读完一家。说说你在做什么,看看谁在赌同一件事。
免费账号 · 3 次免费提问 · 不用绑卡