terraform/states
Martin Atkins 66f96cf842 command: Un-stub and reimplement "terraform state rm"
This was previously targeting the old state manager and state types, so it
needed some considerable rework to get it working again with the new state
types.

Since our new resource address syntax lacks the weird extra .deposed
special case we had before, we instead interpret addresses as
whole-instance addresses here and remove the deposed objects along with
the current one (if present), since this is more likely to match with
user expectations because we don't consider deposed objects to be
independently addressable in any other situation.

With that said, to be more explicit about what is going on we do now have
a -dry-run mode and maintain separate counts of current and deposed
instances so that we can expose that in the UI where relevant.
2018-10-16 19:14:11 -07:00
..
statefile states/statefile: Tolerate nil state in statefile.New 2018-10-16 19:14:11 -07:00
statemgr command: Allow tests to run to completion without panics or hangs 2018-10-16 19:14:11 -07:00
doc.go
eachmode_string.go
instance_generation.go
instance_object.go core: Reinstaint instance tainting, but without mutating objects 2018-10-16 19:14:11 -07:00
instance_object_src.go states: object Private data is []byte, not cty.Value 2018-10-16 19:11:09 -07:00
module.go command: Un-stub and reimplement "terraform state rm" 2018-10-16 19:14:11 -07:00
objectstatus_string.go
output_value.go
resource.go core: Be more explicit in how we handle create_before_destroy 2018-10-16 19:14:11 -07:00
resource_test.go states: Fix TestResourceInstanceDeposeCurrentObject 2018-10-16 19:14:11 -07:00
state.go command: Allow tests to run to completion without panics or hangs 2018-10-16 19:14:11 -07:00
state_deepcopy.go states: DeepCopy for ResourceInstanceObject 2018-10-16 19:14:11 -07:00
state_equal.go
state_string.go states: In Module.testString, use incrementing ids for deposed 2018-10-16 19:14:11 -07:00
state_test.go terraform: Ugly huge change to weave in new State and Plan types 2018-10-16 19:11:09 -07:00
sync.go command: Un-stub and reimplement "terraform state rm" 2018-10-16 19:14:11 -07:00