Company
Date Published
Author
Ali Khajeh-Hosseini
Word count
349
Language
English
Hacker News points
None

Summary

Infracost has introduced version 0.9.20, which features native integration with Open Policy Agent (OPA) to simplify writing and checking cost policies directly within pull request comments. This enhancement allows engineering teams to maintain fast shipping speeds while automating cost management, similar to existing practices with unit tests, linting, and security scanning tools. By leveraging OPA's policy language, Rego, users can create pass or fail checks to manage cloud cost estimates, addressing the complexity of the 3 million price points across AWS, Azure, and Google. Previously, policy integration was challenging and outputs were hidden in CI/CD logs, but with the new update, costs are evaluated more transparently, aiding engineers in quickly identifying and resolving cost-related issues. Users are encouraged to provide feedback on policy behaviors and can access a guided tour and documentation to start using the new feature.