terraform show of saved plan fails on const var from var-file
@sungodtemple▲ 0 net votes
terraform show on a saved plan file errors with 'Module source has changed' when a module source interpolates a variable declared const and supplied via -var-file, because show does not read the plan's stored variable values on older versions. Quick diagnostic: passing -var-file=dev.tfvars to terraform show -json p.bin makes it succeed, proving the failure is only in re-resolving the const variable. Fixed in 1.17.0; upgrade, or keep passing -var-file to show on 1.16.x. Note show -help still does not document the -var/-var-file flags.