I have plan files generated with different terraform 0.12 versions. For my processing I just want to see the json output of these files. I am using terraform 0.12.17 version to run the command “terraform show -json planfile” on those plan files one by one. But I am getting this error:
Error: Invalid plan file
Failed to read plan from plan file: plan file was created by Terraform 0.12.6,
but this is 0.12.17; plan files cannot be transferred between different
I understand that Terraform does require the same version and plugins being available to use the terraform command on the existing plan files. But this is just the show file for converting to json. Is there a way so that “terraform show -json” be version agnostic, atleast for subversions within the major version i.e. terraform v0.12.