Infracost: Cloud Infrastructure Cost Management Tool for Developers
By
hkh
Summary
Infracost is a tool that helps developers and teams manage cloud infrastructure costs by providing cost estimates for infrastructure-as-code (IaC) before deployment. It integrates with CI/CD pipelines to show cost impact of code changes, supports multiple cloud providers, and helps prevent unexpected cloud bills through proactive cost management.
Key quotes
· 4 pulledInfracost helps developers and teams manage cloud infrastructure costs
Provides cost estimates for infrastructure-as-code (IaC) before deployment
Integrates with CI/CD pipelines to show cost impact of code changes
Supports multiple cloud providers and helps prevent unexpected cloud bills
Hey folks, I’m Hassan, one of the co-founders of Infracost (https://www.infracost.io). Infracost helps engineers see and reduce the cloud cost of each infrastructure change before they merge their code. The way Infracost works is we gather pricing data from Amazon Web Services, Microsoft Azure and Google Cloud. What we call a ‘Pricing Service’, which now holds around 9 million live price points (!!). Then we map these prices to infrastructure code. Once the mapping is done, it enables us to show the cost impact of a code change before it is merged, directly in GitHub, GitLab etc. Kind of like a checkout-screen for cloud infrastructure.
We’ve been building since 2020 (we were part of YC W21 batch), and iterating on the product, building out a team etc. However, back in 2020 one of our users asked if we can also show the carbon impact alongside costs.
It has been itching my brain since then. The biggest challenge has always been the carbon data. The mapping of carbon data to infrastructure is time consuming, but it is possible since we’ve done it with cloud costs. But we need the raw carbon data first. The discussions that have happened in the last few years finally led me to a company called Greenpixie in the UK. A few of our existing customers were using them already, so I immediately connected with the founder, John.
Greenpixie said they have the data (AHA!!) And their data is verified (ISO-14064 & aligned with the Greenhouse Gas Protocol). As soon as I talked to a few of their customers, I asked my team to see if we can actually finally do this, and build it.
My thinking is this: some engineers will care, and some will not (or maybe some will love it and some will hate it!). For those who care, cost and carbon are actually linked; meaning if you reduce the carbon, you usually reduce the cost of the cloud too. It can act as another motivation factor.
And now, it is here, and I’d love your feedback. Try it out by going to https://dashboard.infracost.io/, create an account, set up with the GitHub app or GitLab app, and send a pull request with Terraform changes (you can use our example terraform file). It will then show you the cost impact alongside the carbon impact, and how you can optimize it.
I’d especially love to hear your feedback on if you think carbon is a big driver for engineers within your teams, or if carbon is a big driver for your company (i.e. is there anything top-down about carbon).
AMA - I’ll be monitoring the thread :)
Thanks
Comments URL: https://news.ycombinator.com/item?id=46706668
Points: 16
# Comments: 1
You might also wanna read
Infrabase: AI DevOps Agent for Cloud Security and Cost Management
Infrabase is an AI DevOps agent that scans code and organizational context to identify security vulnerabilities, cost spikes, and policy vio
InfrOS: Cloud Architecture Design and Validation Tool for Pre-Deployment Testing
InfrOS is a cloud architecture design and validation tool that helps teams build optimized cloud systems by predicting and proving outcomes
Recost: API Cost Visibility and Optimization Tool
Recost is a tool that helps developers visualize and control API costs by mapping expenses to specific code endpoints, identifying wasteful
