mirror of https://github.com/hashicorp/terraform
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.pull/15768/head
parent
8b3b678c2f
commit
e3748901b4
@ -0,0 +1,12 @@
|
||||
terraform {
|
||||
backend "local" {
|
||||
path = "imported.tfstate"
|
||||
}
|
||||
}
|
||||
|
||||
provider "test" {
|
||||
foo = "bar"
|
||||
}
|
||||
|
||||
resource "test_instance" "foo" {
|
||||
}
|
||||
Loading…
Reference in new issue