terraform/states/statefile
Martin Atkins 7cf782c1bf states/statefile: Better error messages for some unsupported v3 cases
There are a few situations that we've seen arise quite commonly for folks
upgrading from Terraform 0.11 to 0.12. These particular problems are not
things that Terraform 0.12 can fix automatically during upgrading, but
we can at least give some better feedback to users that they ought to be
addressed _before_ upgrading.

The provider address problem is already detected and flagged by the
"terraform 0.11checklist" command that folks should run as part of their
upgrade process, but the module address problem is not something we
noticed was lacking validation in 0.11 and so the checklist tool doesn't
cover it. Due to the lack of coverage in the checklist tool, this commit
also includes an additional section in the upgrade guide that mentions
the problem and gives instructions on how to address it.
2019-11-21 09:18:49 -08:00
..
testdata/roundtrip states/statefile: tolerate and ignore invalid depends_on in version 3 2019-11-21 09:18:49 -08:00
diagnostics.go
doc.go
file.go states/statefile: Tolerate nil state in statefile.New 2018-10-16 19:14:11 -07:00
marshal_equal.go command: Allow tests to run to completion without panics or hangs 2018-10-16 19:14:11 -07:00
read.go command: Fix TestInit_getProvider 2018-11-12 15:19:55 -08:00
roundtrip_test.go read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
version0.go
version1.go
version1_upgrade.go
version2.go states/statefile: decode backend hash as uint64 2019-05-28 23:59:36 +09:00
version2_upgrade.go
version3.go
version3_upgrade.go states/statefile: Better error messages for some unsupported v3 cases 2019-11-21 09:18:49 -08:00
version4.go read+write the new dependencies in the statefile 2019-11-07 17:49:03 -05:00
write.go always write the current state terraform_version 2019-05-21 18:55:53 -04:00