Live data from Hacker News

Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode

news.ycombinator.com

1–10 of 36 posts

Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode

#1
Hey, Hugo from Infracost (https://www.infracost.io) here. Infracost shows engineers the cost of each Terraform change in CI/CD before launching resources. When something changes, it posts a comment with the cloud cost impact. e.g. you’ve added two instances and volumes and have changed an instance type from medium to large; this will increase your bill by 25% next month from $1000 to $1250 per month.

Over the last few months, I've been working on a native evaluation for Terraform. Previously we relied on the Terraform CLI to fetch cloud resource information, which was a little slow and cumbersome.

Native parsing is not only lightning-fast, but it means we have contextual file information, which allows us to try a load of cool new things. For example, we could provide real-time suggestions to optimise your cloud costs as you write your infrastructure code! This VSCode extension is the result of a few weeks of hacking away whilst I should have been relaxing in the sun in Italy... time better spent, I think!

We're excited about the possibilities of directly integrating with editors. There is so much we can do to make DevOps lives easier when optimising cloud spend. Right now, we're looking for your feedback on this initial version of the extension. It currently ships with:

1. Show a snapshot of the total cost of resources right above their Terraform definitions. Updated on file save.

2. Resource and module blocks support showing cost estimates, including 3rd party module blocks.

3. A cost overview web-view shows a detailed breakdown of what components affect the price.

Please note this is an early release of the VSCode extension, so there will likely be bugs. If you get stuck, please raise an issue (https://github.com/infracost/vscode-infracost/issues), and we'll help you out asap.

We’d love to get your feedback on this extension, mainly what you think it’s missing and would help your workflow. Head over to the GitHub repo (https://github.com/infracost/vscode-infracost) for more information and installation instructions.

Re: Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode

#7
Congrats on the release!

One question, do you support, or maybe are planning to support usage-based pricing? Stuff like Lambda invocations.

It's a common use-case and I think it's a tough nut to crack with your architecture, so wondering if you came up with something for that.

Re: Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode

#8
post #7

Congrats on the release! One question, do you support, or maybe are planning to support usage-based pricing? Stuff like Lambda invocations. It's a common use-case and I think it's a tough nut to crack with your architecture, so wondering if you came up with something for that.

Great question! See https://www.infracost.io/docs/features/usage_based_resources... as the CLI can pull usage data for Lambda/S3/Dynamo from the AWS APIs (e.g. CloudWatch).

The other data source we can tap into is the actual billing data, e.g. AWS Cloud and Usage Reports - if you have any thoughts/preferences, checkout https://github.com/infracost/infracost/discussions/985#discu...

Re: Show HN: Infracost (YC W21): Cloud Costs for Terraform in VSCode

#10

Any plans to also support Pulumi?

Great question, and it's something we get asked a lot. We have an open PR on our main CLI repo to add Pulumi support (https://github.com/infracost/infracost/pull/1752). This still has some way to go and is currently just using a Pulumi preview file. To get to full editor support, we'd need to be able to read raw Pulumi configuration in all the different languages and flavours it comes in. It's definitely on our radar, but it's not "simple" addition. I'd recommend following our Pulumi issue (https://github.com/infracost/infracost/issues/187) for updates on feature support.
Post reply on HN