opentofu/internal/command/testdata/backend-unchanged-vars/local-state.tfstate
Martin Atkins 8b0b5b271b command/init: Support static eval for backend config migration check
The "backendConfigNeedsMigration" helper evaluates the backend
configuration inline to compare it with the object previously saved in the
.terraform/terraform.tfstate file.

However, this wasn't updated to use the new "static eval" functionality
and so was treating any references to variables or function calls as
invalid, causing a spurious "backend configuration changed" error when
re-initializing the working directory with identical backend configuration
settings.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-10-09 09:27:11 -07:00

13 lines
326 B
JSON

{
"version": 4,
"terraform_version": "0.14.0",
"serial": 7,
"lineage": "configuredUnchanged",
"outputs": {
"foo": {
"type": "string",
"value": "This is only here so that the state snapshot isn't 'empty' and so can't enter a no-migration-needed fast path."
}
}
}