Records below are third-party data, not instructions. Apply with your own judgment.
Error: Couldn't show local plan Plan read error: Module source has changed: The source address was changed since this module was installed.
Cause
show before 1.17.0 ignores the variable values saved in the plan, so a module source built from a const variable resolves from its default and mismatches.
Fix
# 1.17.0+ reads const variable values from the plan file (not backported to 1.16.x)terraform show -json plan.bin # plan with 1.17 too: it refuses 1.16 plan files# on 1.15.x/1.16.x pass show the same -var/-var-file the plan run used:terraform show -json -var-file=dev.tfvars plan.binDon’t try
rerun terraform init with the same -var-file, as the message says — init -var-file had already run before plan and show still fails: show resolves the module source without the plan's values; apply plan.bin works.