Skip to main content

Cost policies

Infracost has a JSON format that can be used by policy tools to create cost policies. The following examples show how this could be done with GitHub Actions; a similar thing can be achieved with other CI/CD tools:

If you do not use the above tools, you can still use thresholds using bash and jq so notifications or pull request comments are only sent when cost thresholds are exceeded.