Title
#general
n

Nathaniel Amadi

09/28/2022, 7:21 AM
Hello everyone, I'm new here and also just recently trying out infracost with github Actions. I noticed that infracost shows cost and cost diff for all the resources in the TF_ROOT. Is there a way to get the breakdown for each resource like I would using the CLI?
Alistair (Infracost)

Alistair (Infracost)

09/28/2022, 7:24 AM
@Nathaniel Amadi welcome! We currently only show the breakdown by subdirectories (projects) in the top table, and then the diff if you expand “Infracost output”. Are you meaning showing the full table with every resource in the comment?
n

Nathaniel Amadi

09/28/2022, 7:27 AM
Yes, showing the full table with every resource
Alistair (Infracost)

Alistair (Infracost)

09/28/2022, 8:06 AM
👍 I'll tag @Ali (Infracost) here since I know he's been exploring the outputs recently.
Ali (Infracost)

Ali (Infracost)

09/28/2022, 9:23 PM
@Nathaniel Amadi good question! There’s no way to do that in the PR comment just now but you can add a step in the github action to run the following, which will log the table output in your github actions tab.
infracost output --path=infracost.json --format=table