Description
What problem are you facing?
A while ago before orcs groundlessly and treacherously come against Ukraine while I was poking around some TF issue I stumbled upon this thread about sorting Terraform files and created a tiny AWK script to achieve the goal of sorting definition blocks in .tf
files.
And now I had a thought that someone may find it useful and may want to create a pre-commit-terraform
hook to benefit from it (I don't actually heavily use either and thus I'm not sure I'd be able to allocate some reasonable amount of time for this).
So if there are any volunteers to pick this task up, I'd be happy to assist as much as time permits.
Thanks in advance for the contribution and effort 🙇🏻
How could pre-commit-terraform help solve your problem?
Sorting definition blocks in *.tf
files may make your code more beautiful and clear. Or may not 😏