You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently integrated Infracost with GitHub Actions to provide cost estimations for our infrastructure changes. However, despite configuring the setup, the cost estimation results are not showing up in the pull request (PR) comments
when running this command: infracost comment github --path=infracost.json \ --repo=$GITHUB_REPOSITORY \ --pull-request=$PR_NUMBER # or --commit=$GITHUB_SHA \ --github-token=$GITHUB_TOKEN \ --behavior=update
I expect the cost estimation result to be displayed in the PR comment.But what I see only (see screenshot):
Note : I can run the command locally and see the cost estimation :
The text was updated successfully, but these errors were encountered:
Did you follow our example? If yes, then everything should be set up to show the cost diff (infracost diff command that compares PR's changes with baseline).
However, from your screenshot, it seems that you have usage-based resources like S3: such resources have no monthly costs until you add usage parameters (See the messages "Monthly cost depends on usage"). So, if this is the case, the cost of such resources will be zero thus the sentence that the monthly cost will not change.
Could you please try adding an infracost-usage.yml file as a text using these profiles and see if it makes a difference?
I recently integrated Infracost with GitHub Actions to provide cost estimations for our infrastructure changes. However, despite configuring the setup, the cost estimation results are not showing up in the pull request (PR) comments
when running this command:
infracost comment github --path=infracost.json \ --repo=$GITHUB_REPOSITORY \ --pull-request=$PR_NUMBER
# or --commit=$GITHUB_SHA\ --github-token=$GITHUB_TOKEN \ --behavior=update
I expect the cost estimation result to be displayed in the PR comment.But what I see only (see screenshot):
Note : I can run the command locally and see the cost estimation :
The text was updated successfully, but these errors were encountered: