backstage / community-plugins

Community plugins for Backstage
Apache License 2.0
129 stars 124 forks source link

[Plugin] Infracost - Cloud cost estimates for Terraform changes #245

Open hassankhosseini opened 2 years ago

hassankhosseini commented 2 years ago

Summary

Infracost posts cloud cost estimates for Terraform in pull requests. It looks at what Terraform changes have been made, and leaves a comment like ‘This change will increase your AWS bill by 25%’ with details of the changed resources and their cost impact. It’s an open source CLI that covers over 230 Terraform resources across AWS, Azure and Google. It also works with many CI/CD systems including GitHub Actions, GitLab CI, Atlantis, Azure Pipelines and Terraform Cloud.

I’d love to know if the community thinks there is need for this kind of information in Backstage? For example, what were the top 5 most expensive PRs, or the ones that saved us most money. Or if Backstage isn’t really where this information can be helpful?

Project website (if applicable)

www.infracost.io https://github.com/infracost/infracost

mammlouk commented 6 months ago

Is this still being considered? I'm spinning up on backstage in order to assist with improving cost forecasting/capture on an existing infrastructure project. I'm currently pretty ignorant on backstage, but have extensive terraform experience. I've used infracost on a few projects with great results and would love to hear about possible integration ideas between infracost and backstage.

tudi2d commented 6 months ago

Hey @mammlouk. Infracost was part of a Community Session a while back (https://www.youtube.com/watch?v=BpCEShQz4mY) when they haven't had a UI. Afaik there hasn't been any development so far to create a Backstage plugin for Infracost. If you are interested in that, please go ahead & give it a try.

Otherwise there are other plugins related to this like KubeCost, Cost Insights & OpenCost. You can find more information on them on https://backstage.io/plugins.