Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment specific Infracost diffs to GitHub Actions summery page #50

Closed
1 task done
brettcurtis opened this issue Mar 28, 2023 · 0 comments · Fixed by #51
Closed
1 task done

Add environment specific Infracost diffs to GitHub Actions summery page #50

brettcurtis opened this issue Mar 28, 2023 · 0 comments · Fixed by #51
Assignees

Comments

@brettcurtis
Copy link
Contributor

brettcurtis commented Mar 28, 2023

As a "workflow approver," I'd like to see all the relevant information on the summary page that would go into my decision-making process when approving the apply job for infrastructure. The cost difference in a given environment would be crucial to that decision.

Acceptance

Preview Give feedback

Notes

  • For the sandbox workflow, we need to compare the cost in the current PR branch to the main branch. This is similar to the old workflows we had before switching to the application.
  • We need to compare the cost against the previous commit and main branch for the pre-prod and production environment since pre-prod runs on merge to main and prod runs on successful workflow run of pre-prod.
  • Maybe we can utilize the cache for infracost breakdown out files to simplify code vs. dealing with different commits.
  • Each environment will have its own tfvars and infracost-usage file
  • Ali provide some CLI ideas via email infracost diff --path plan.json --format json --out-file infracost.json and infracost output --path infracost.json --format github-comment --out-file infracost-markdown.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
1 participant