terraform/backend
Martin Atkins 12572e97bc core: Automatically upgrade resource instance states on read
If an instance object in state has an earlier schema version number then
it is likely that the schema we're holding won't be able to decode the
raw data that is stored. Instead, we must ask the provider to upgrade it
for us first, which might also include translating it from flatmap form
if it was last updated with a Terraform version earlier than v0.12.

This ends up being a "seam" between our use of int64 for schema versions
in the providers package and uint64 everywhere else. We intend to
standardize on int64 everywhere eventually, but for now this remains
consistent with existing usage in each layer to keep the type conversion
noise contained here and avoid mass-updates to other Terraform components
at this time.

This also includes a minor change to the test helpers for the
backend/local package, which were inexplicably setting a SchemaVersion of
1 on the basic test state but setting the mock schema version to zero,
creating an invalid situation where the state would need to be downgraded.
2018-11-30 11:22:39 -08:00
..
atlas Make the Atlas backend work after updating depencies 2018-11-15 20:34:31 +01:00
init Change how to fall back from remote to local backend 2018-11-20 22:25:52 +01:00
local core: Automatically upgrade resource instance states on read 2018-11-30 11:22:39 -08:00
remote backend/remote: support the new force-unlock API 2018-11-30 19:39:18 +01:00
remote-state backend/azurerm: support for custom resource manager endpoints (#19460) 2018-11-26 14:42:16 +01:00
backend.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
cli.go backend: Update interface and implementations for new config loader 2018-10-16 18:39:12 -07:00
nil.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
nil_test.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operation_type.go backend: introduce the backend set of interfaces 2017-01-26 14:33:49 -08:00
operationtype_string.go Update various files for new version of "stringer" 2017-12-11 13:26:29 -08:00
testing.go Implement the remote enhanced backend 2018-11-06 16:29:46 +01:00
unparsed_value.go Add a VariableSourceType for names .tfvars files 2018-11-05 19:29:34 +01:00