tf-summarize icon indicating copy to clipboard operation
tf-summarize copied to clipboard

print change summary as json

Open cgroschupp opened this issue 3 years ago • 2 comments

Maybe this is the beginning of this TODO

cgroschupp avatar Dec 06 '22 14:12 cgroschupp

Hi @cgroschupp Thanks for the PR

Sorry, I was not very descriptive in the TODO list. What I meant there is We have to show the current terraform state summary. Like what are the resources already created (whatever available in terraform state). And show them in formats like tree/drawable-tree/table

User has to run terraform plan before running tf-summarize. Plan itself will summary count in the last line, which is same as json-sum. Could you please help me in understanding the usecase of the json-sum output.

dineshba avatar Dec 18 '22 06:12 dineshba

@cgroschupp Please share your thoughts

dineshba avatar Feb 18 '23 11:02 dineshba

Is this PR ever planning to get merged?

Terraformadillo avatar Oct 16 '24 18:10 Terraformadillo

@dineshba My use case behind the json-sum was to get the change result in structured form (json) and extract information with jq. And my pipeline reacts differently to this result.

@Terraformadillo yes, ready to merge

cgroschupp avatar Oct 17 '24 07:10 cgroschupp

Could you help in test fixing ? @cgroschupp

Looks we added new tests which is failing now... we might have to update the error message... I can also look into it if you are packed

dineshba avatar Oct 17 '24 12:10 dineshba

Now the tests should be OK.

cgroschupp avatar Oct 18 '24 08:10 cgroschupp

Thanks for the PR... Merged and release it now

dineshba avatar Oct 19 '24 04:10 dineshba