terraform/helper/resource
Mitchell Hashimoto 35c87836b4 core: Add terraform_version to state
This adds a field terraform_version to the state that represents the
Terraform version that wrote that state. If Terraform encounters a state
written by a future version, it will error. You must use at least the
version that wrote that state.

Internally we have fields to override this behavior (StateFutureAllowed),
but I chose not to expose them as CLI flags, since the user can just
modify the state directly. This is tricky, but should be tricky to
represent the horrible disaster that can happen by enabling it.

We didn't have to bump the state format version since the absense of the
field means it was written by version "0.0.0" which will always be
older. In effect though this change will always apply to version 2 of
the state since it appears in 0.7 which bumped the version for other
purposes.
2016-05-10 14:40:11 -04:00
..
error.go helper/resource: Remove NotFoundError function 2016-03-21 16:47:50 +00:00
id.go helper: Add resource.PrefixedUniqueId 2015-06-30 12:54:54 +01:00
id_test.go helper/resource: add UniqueId() helper 2015-04-22 12:53:05 -05:00
map.go
map_test.go
resource.go
state.go helper: Add StateChangeConf.ContinuousTargetOccurence (int) 2016-02-23 20:18:57 +00:00
state_test.go helper: Add StateChangeConf.ContinuousTargetOccurence (int) 2016-02-23 20:18:57 +00:00
testing.go core: Add terraform_version to state 2016-05-10 14:40:11 -04:00
testing_test.go helper/resource: make id-only check opt-in 2016-04-21 08:37:08 -07:00
wait.go helper/resource: Error shouldn't be returned in case of success 2016-03-10 14:14:14 +00:00
wait_test.go helper/resource: Fix TestRetry 2016-03-10 14:13:23 +00:00