August 13th, 2024

Show HN: See the impact on your cloud costs as you code

Owen created a free JetBrains plugin for real-time cloud cost insights during coding, promoting early issue identification. It uses a secure API and invites user feedback for improvements.

FrustrationInterestSkepticism
Show HN: See the impact on your cloud costs as you code

Owen, a new employee at Infracost, has developed a free plugin for JetBrains that allows engineers to see the cloud cost implications of their code changes in real-time as they write. This initiative stems from his previous experience as a founder of tfsec, where he learned the importance of identifying issues early in the coding process. The plugin aims to integrate cloud cost awareness directly into the code editor, potentially saving time and resources. Owen encourages users to provide feedback on the plugin, which is still in its early stages and may contain bugs. The extension utilizes Infracost's Cloud Pricing API, which includes pricing data from AWS, Azure, and GCP, ensuring that no sensitive information is compromised. For those interested in incorporating Infracost into their CI/CD processes, additional resources are available on the Infracost website.

- Owen has developed a free JetBrains plugin to show cloud costs in real-time.

- The plugin aims to help engineers identify cost implications early in the coding process.

- Feedback is encouraged as the plugin is new and may have bugs.

- The extension uses a secure Cloud Pricing API with data from major cloud providers.

- Infracost offers additional resources for CI/CD integration on their website.

AI: What people are saying
The comments on Owen's JetBrains plugin reveal a mix of feedback and suggestions from users.
  • Some users report issues with cost calculations and seek better error feedback from the plugin.
  • There are discussions about the plugin's relevance for large enterprises versus smaller businesses, with some questioning its utility in established cloud environments.
  • Users express interest in additional features, such as support for various infrastructure as code tools and integration with cloud accounts for more accurate cost assessments.
  • Several comments highlight the importance of understanding cost implications in the context of business value and project management.
  • Suggestions for improving user engagement include creating concise visual content to promote the plugin.
Link Icon 23 comments
By @jbs789 - 6 months
I have more macro questions about this. Sometimes I find engineers aren’t best placed to evaluate cost at all. What might be perceived as expensive (say relative to a salary) is not expensive at all in the context of the business problem being solved.

Think there’s a book called “measure what matters” and the idea is what we measure shapes companies and behaviour. So I’d be very careful about implementing anything like this in my org.

By @Namret - 6 months
The main page doesn't mention Terraform explicitly (except for the user feedback section). Are there plans to make this compatible with e.g. AWS CDK or Pulumi?
By @purple-leafy - 6 months
Good idea mate. This is the kind of thing that should have heaps of users.

I wanted to watch the YouTube video but I didn’t have access to audio, and gave up. Video took to long and had too few visual cues - I think many people will do the same.

So you should make a super short gif (10-20 seconds max) that gets the point across extremely fast and visually - no audio.

Post it on Reddit on webdev, you’ll get a shit tonne of people installing this.

I’ve had lots of success with this simple method (sold a personal project with 700,000 users)

By @eitally - 6 months
This seems to be solving a problem that most enterprise software engineers don't have. If you're at a large company that has already chosen its preferred cloud, you're probably already spending $xxM+ with them annually and you probably get CUDs & other incentives to keep your business growing with them.

That said, I've never personally seen any cloud project where there wasn't a business case review that didn't include a review of architectural plans/assumptions and expected cloud service consumption profiling. I think what's different here is that you can help engineers close a feedback loop that is often left open between when a project is planned & scoped and when 1) the landing zone (or data pipelines) is created, and 2) when the app/system is moved from test/QA into production. This could be helpful for the project/product manager, especially, because anything that looks out of whack with the forecast should be escalated promptly.

By @bearjaws - 6 months
This is amazing, I think it's best applied at CI/CD first, but having the plugin is good too for ICs to get it into a company.

How "smart" is it? Say I make a copy of a large database in TF and redeploy it into a staging env, will it know that the storage is $200 a month?

Also maybe put the supported clouds on the front page? I work multi-cloud so was worried it was only AWS.

By @rbro - 6 months
Looks great based on the video!

As a data engineer in a consulting company: this would be a good way to get an idea of cost once we've written infra for projects.

Couple of questions:

1. Is Bicep supported?

2. Any plans for a VS Code plugin? (I just saw in your docs you have a plugin for this, great!)

3. How are you handling pricing of resources that are dependent on consumption?

By @manmal - 6 months
Looks great! The markdown link to your site is broken.
By @blorenz - 6 months
I just installed to test this out and my cost isn't being calculated at all. I took a ekctl yml file and had chatGPT convert it to a terraform file; the terraform file validates; but nothing is discovered by Infracost plugin. I have it off my <project root>/deploy/terraform/. I wish there was some more feedback from the plugin why it cannot locate or visualize my cost.
By @nsonha - 6 months
This is nice but tackle it this ways might be unnecessarily complicated. I don't always need to look at the cost while writing code and it could fail to track, say, resources dynamically created with something like CDK.

More useful for me would be to plug directly into the account OR to analyse the cloud formation template, which can be easily obtained regardless of the IaC you're using.

By @mathverse - 6 months
Do you have some testimonials from customers to show us how do they use it and what value do they get out of it?

In my org 50k-100k cloud bill I don't see that much use for it (mainly we are not increasing our costs significantly and we roughly know what we are paying for).

I can see a lot of value for indie/small/medium sized biz but the commercial of that is too high in my opinion.

By @lazzurs - 6 months
I've been an early user of Infracost and I cannot recommend it enough. It being in the CI/CD system is good but it being in the IDE is excellent. Cost is an important architecture concern and yet it's one of the most opaque things to deal with. This IDE plugin for Infracost fixes cost being opaque.

Excellent work, thanks for this.

By @ai4ever - 6 months
This is nice but not very useful to me. What would be more useful in my use case is tooling to audit my cloud accounts periodically and reclaim garbage which is not used or re optimize my usage (smaller instances or databases depending on usage patterns) which directly saves me money.
By @denvrede - 6 months
Does it have Terragrunt (*.hcl) support? I see it mentioned no where but the infracost CLI has (https://www.infracost.io/docs/features/terragrunt/).
By @mrg3_2013 - 6 months
Looks interesting! I think cost of running resources would be more helpful
By @saadatq - 6 months
Would love to see a plugin/adapter for Snowflake.

BigQuery has a neat feature where it estimates the cost __before__ you run a query, which has often come in handy.

By @xhkkffbf - 6 months
How crisp are the estimates of cost? I can see how they might depend heavily upon the dataset, especially when the algorithms are supralinear like O(n^2) or O(n^3).
By @fulafel - 6 months
Could similar be done for co2 emissions?
By @da768 - 6 months
Do you plan to take discounts into account?

Can you base usage off previous billing data for existing resources?

By @jiehong - 6 months
Congrats!

It's almost a REPL for cloud costs! Amazing!

By @itaysk - 6 months
Hi Owen! This is Itay from Aqua, what a lovely surprise stumbling across this post :) This looks awesome, congrats and good luck
By @paxys - 6 months
I was half hoping this would tell me how many dollars worth of CPU cycles my shitty code was wasting for no reason.