Skip to content

toninoes/github-actions-terraform-infracost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-actions-terraform-infracost

This project is made in the context of flexyfriday with @SoyTecnopata in order to evaluate Infracost tool with Github Actions.

Once your infracost workflow is configured, when doing PR, you can get a nice comment like below

alt text

Also, you can use locally in pre-commit and add infracost hook, with costs checks, and for example with this configuration:

    - id: infracost_breakdown
      args:
        - --args=--path=./terraform
        - --args=--terraform-var-file="terraform.tfvars"
        - --hook-config='.projects[].diff.totalMonthlyCost|tonumber < 2'
        - --hook-config='.currency == "USD"'
      verbose: true # Always show costs

will Fail

alt text

About

Small project only to test Infracost tool in GitHub Actions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published