mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-19 02:39:17 -05:00
* refactor: Check that the state storage provider is present when beginning to initialise a state store for use in a non-init command. Ensure reattached providers can be used. Previously we passed all required providers into backend options to be used within `stateStoreConfig`, which is invoked via (Meta).Backend. The new approach enforces that the provider is present while assembling the backend options passed to (Meta).Backend from (Meta).backend, which is non-init specific. As this code is defending against users running non-init commands before an init, this place feels appropriate and isn't able to impact the init command. * fix: Reattached PSS providers should return early when checking locks, and an empty locks file is only bad if there isn't a reattached PSS provider * test: Assert that running init with reattached PSS provider is ok, via an E2E test that uses the reattach feature. * fix: Allow builtin or reattached providers to be used for state stores when generating a plan file * test: Expand E2E test to show using a reattached provider can be used for a workflow of init, plan with -out, and apply. * chore: Replace 'io/ioutil' and format code in unmanaged e2e tests |
||
|---|---|---|
| .. | ||
| backend_config_state.go | ||
| backend_config_state_test.go | ||
| backend_state.go | ||
| backend_state_test.go | ||
| config_state.go | ||
| dir.go | ||
| doc.go | ||
| normalize_path.go | ||
| plugin_dirs.go | ||
| plugin_dirs_test.go | ||
| statestore_config_state.go | ||
| statestore_config_state_test.go | ||
| testing.go | ||