mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-04 13:17:43 -06:00
e3748901b4
While the `local.Local` backend is the only implementation of `backend.Local`, creating the backend with `ForceLocal` bypasses the `backend.Backend` in the `local.Local` causing a local state to be implicitly created rather than using the configured state backend. Add a test that imports into a configured backend (using the "local" backend as a remote state proxy). This further confirms the confusing nature of ForceLocal, as the backend _is_ local, but not from the viewpoint of meta.Backend.
13 lines
137 B
HCL
13 lines
137 B
HCL
terraform {
|
|
backend "local" {
|
|
path = "imported.tfstate"
|
|
}
|
|
}
|
|
|
|
provider "test" {
|
|
foo = "bar"
|
|
}
|
|
|
|
resource "test_instance" "foo" {
|
|
}
|