https://infracost.io logo
#general
Title
# general
a

aloof-hair-24776

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?
l

little-author-61621

09/28/2022, 7:24 AM
@aloof-hair-24776 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?
a

aloof-hair-24776

09/28/2022, 7:27 AM
Yes, showing the full table with every resource
l

little-author-61621

09/28/2022, 8:06 AM
👍 I'll tag @white-airport-8778 here since I know he's been exploring the outputs recently.
w

white-airport-8778

09/28/2022, 9:23 PM
@aloof-hair-24776 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