This is interesting. I think we could have multiple ways of specifying the usage and they all get translated into a standard format. I imagine this requires parsing the HCL code, so as long as we can match that to the resources in the plan JSON it should be good.
d
damp-ambulance-61372
07/23/2021, 9:43 AM
Yeah we can also do the same with other tools (pulumi, etc) and translate all comments into a standard format (i.e. current usage-file), which is then used to calculate pricing. Maybe we can reuse the code in tfsec project for parsing HCL code.