CI/CD integrations

The Infracost CI/CD integration can be used to automatically add a pull request comment showing the cost estimate difference (similar to git diff) between the master branch and the working branch. You can also select to ignore changes with minor cost increase/decreases by setting a percentage threshold for the comment to be added - details are in each integration document.

Infracost can be used in any CI/CD system using our binary or Docker image. You might also find our CI diff script useful; it's used in the following integrations.

If you run into any issues with CI/CD integrations, please join our community Slack channel; we'd be happy to guide you through it.

GitHub Action#

See the Infracost GitHub Action for instructions, and a demo here

Example infracost diff usage

GitLab CI#

See the Infracost GitLab CI template for instructions, and a demo here.

Example infracost diff usage

CircleCI#

See the Infracost CircleCI Orb for instructions; it supports GitHub and Bitbucket. A demo of the GitHub integration is here, and Bitbucket is here

Bitbucket Pipelines#

See the Infracost Bitbucket Pipeline for instructions, and a demo here.

Example infracost diff usage