I'm trying to use InfraMap with OpenTofu. When I run:
tofu show -json | inframap generate
I got the following error:
"Error: error while validating TFStateVersion: could not read version 0: invalid Terraform State version, we only support version 3 and 4"
Any ideas on how to address this?
Looks like this is not related to OpenTofu, I have the same issue with the last one Terraform version (1.6.6).
My state file contain some resources, I cleaned them up for security. Clean state looks like:
I could get some resources from state via
inframap generate --clean=false terraform.tfstatebut looks like some bug in inframap itself.The closest issue on GitHub that I could find is this: https://github.com/cycloidio/inframap/issues/136