Replies: 11 comments 4 replies
-
Make the GH Action more composableCurrently the infracost action runs the ‘scripts/ci/diff.sh’ bash script. That performs several steps: runs terraform, generates a diff, puts a comment on the pr. Each of these could be exposed as individual steps making it easier to, for example, upload the diff as an artifact. |
Beta Was this translation helpful? Give feedback.
-
Don’t run Terraform in the Infracost action, use the setup_terraform action for thatSince Infracost really just needs a plan json to do its thing, let people setup up and run Terraform using the official Hashicorp actions. Same goes for vault or whatever else is needed. |
Beta Was this translation helpful? Give feedback.
-
Add CI specific
|
Beta Was this translation helpful? Give feedback.
-
Support for monoreposAutomatically detect nested tf projects when running. Or maybe automatically generate an Infracost config file that lists all nested projects. |
Beta Was this translation helpful? Give feedback.
-
Better multiproject outputWhen posting to a PR comment, show a table/matrix summarizing the diff for each project. Or only show projects that have changes. |
Beta Was this translation helpful? Give feedback.
-
GH action libraryThe docs currently show two ways to set up gh actions, but there are a lot of different ways to do it. Could we have a section of the docs for "user submissions" so I can see more examples? For example it would be cool to see an example of how to setup a Terragrunt monorepo that gets required credentials from Vault. |
Beta Was this translation helpful? Give feedback.
-
Ditch the bash scriptThe scripts have outgrown bash, should we move the logic to composable go commands or nodejs? |
Beta Was this translation helpful? Give feedback.
-
Default to "Update" for pull request commentsHaving an Infracost comment on every commit can be noisy. Should we make "one comment per PR" the default behavior? |
Beta Was this translation helpful? Give feedback.
-
Sparkline in commentsPut a sparkline in the comments showing how the total cost has changed with each commit. |
Beta Was this translation helpful? Give feedback.
-
Use the GH "Check" API to show a one line status on the PRWe could show something like "Total $xxx. +/-$yyy this Pull Request" and link to an artifact with the full breakdown. |
Beta Was this translation helpful? Give feedback.
-
Most of the ideas in this discussion went into action!See https://www.infracost.io/docs/guides/actions_migration/ Thanks to everyone who contributed to the discussion |
Beta Was this translation helpful? Give feedback.
-
I’ve been talking with people about how they integrated infracost into their CI pipeline and I’ve been getting some great suggestions on how to make it easier/better. I’m still trying to figure out GH discussions, so this time I’m going try posting the different ideas as comments.
Feel free to post your own ideas and if you see something you like, uproote, thumbsup or reply!
Beta Was this translation helpful? Give feedback.
All reactions