Paul Hinze
6e13aacefa
core: [refactor] DRY up EvalWriteState nodes
...
Also some final comment cleanup
2015-03-04 18:22:18 -06:00
Paul Hinze
6c93fbb85d
core: [refactor] store Deposed resource instances as a list
...
Deposed instances need to be stored as a list for certain pathological
cases where destroys fail for some reason (e.g. upstream API failure,
Terraform interrupted mid-run). Terraform needs to be able to remember
all Deposed nodes so that it can clean them up properly in subsequent
runs.
Deposed instances will now never touch the Tainted list - they're fully
managed from within their own list.
Added a "multiDepose" test case that walks through a scenario to
exercise this.
2015-03-04 12:25:59 -06:00
Paul Hinze
596e891b80
core: [refactor] pull Deposed out of Tainted list
2015-03-04 12:25:47 -06:00
Mitchell Hashimoto
4ec31ecb95
command/taint: new command
2015-02-26 10:29:23 -08:00
Mitchell Hashimoto
b3cd1bd5bc
terraform: add ResourceState.Taint
2015-02-26 09:58:56 -08:00
Mitchell Hashimoto
57f7507ebd
terraform: more state tests, fix a bug
2015-02-23 21:43:54 -08:00
Mitchell Hashimoto
f3af221866
terraform: make DeepCopy public
2015-02-23 21:32:27 -08:00
Mitchell Hashimoto
c2bf600603
state: only change serial if changed
2015-02-23 21:26:33 -08:00
Mitchell Hashimoto
330364f668
terraform: State.IsEmpty
2015-02-23 15:13:54 -08:00
Mitchell Hashimoto
6cd5c894e8
terraform: State.IsRemote
2015-02-23 15:13:54 -08:00
Mitchell Hashimoto
022967acdb
terraform: module inputs/vars can be non-strings [GH-819]
2015-02-23 13:50:53 -08:00
Mitchell Hashimoto
b041f48e56
terraform: State.Equal
2015-02-20 13:39:49 -08:00
Mitchell Hashimoto
c8091aa338
terraform: fix more create-before-destroy state juggling
2015-02-19 12:08:07 -08:00
Mitchell Hashimoto
93f3050dbd
terraform: make things more linear
2015-02-19 12:08:04 -08:00
Mitchell Hashimoto
cbbe9cb588
terraform: state prune prunes computed variables
2015-02-19 12:08:03 -08:00
Mitchell Hashimoto
e45308fa6d
terraform: module orphans are properly expanded and planned for destroy
2015-02-19 12:08:01 -08:00
Mitchell Hashimoto
e08dc05f54
terraform: State.ModuleOrphans
2015-02-19 12:07:52 -08:00
Mitchell Hashimoto
c2f3f0594d
terraform: sort dependencies of resource state [GH-928]
2015-02-17 11:47:53 -08:00
Armon Dadgar
d821f7aaa6
terraform: Make RemoteState more flexible
2014-12-10 13:27:09 -08:00
Armon Dadgar
b83b4a923f
terraform: expose the state version
2014-12-10 13:27:06 -08:00
Armon Dadgar
6ce957d4b1
terraform: State helpers
2014-12-10 13:27:06 -08:00
Armon Dadgar
1ec0602cab
terraform: Add new remote storage fields to state
2014-12-10 13:27:06 -08:00
Armon Dadgar
a5d444b8e3
terraform: fix module output handling. Fixes #474
2014-11-24 19:18:52 -08:00
Armon Dadgar
9707eb3fc8
terraform: Add dependencies field to modules
2014-11-21 15:34:23 -08:00
Mitchell Hashimoto
edf85de411
terraform: output state in human-readable format
...
/cc @armon - Didn't need to save the bits here, plus it makes it easier
for someone to go in and modify this stuff
2014-10-12 22:56:34 -07:00
Mitchell Hashimoto
d2e836275b
terraform: sort the modules in the state [GH-318]
2014-10-11 12:47:06 -07:00
Mitchell Hashimoto
101ac636a2
config: add Config method
2014-10-02 11:34:08 -07:00
Mitchell Hashimoto
fb1c224e12
terraform: expand resource nodes at walk time
2014-10-02 10:42:58 -07:00
Mitchell Hashimoto
3941dbac5d
fmt
2014-09-28 11:51:49 -07:00
Mitchell Hashimoto
e5e51d7b17
command: state output is well formatted for modules
2014-09-25 19:25:10 -07:00
Mitchell Hashimoto
6b2781d77c
terraform: module orphans
2014-09-23 14:57:17 -07:00
Mitchell Hashimoto
d443202b31
terraform: fix copying dependencies
2014-09-23 14:20:26 -07:00
Mitchell Hashimoto
b1a583e3de
terraform: plan with modules work
2014-09-23 14:15:40 -07:00
Mitchell Hashimoto
a6f792b3aa
terraform: update graph to build subgraphs for modules
2014-09-22 16:48:18 -07:00
Mitchell Hashimoto
46c1209c92
terraform: State.String outputs multiple modules
2014-09-22 15:53:18 -07:00
Mitchell Hashimoto
ca875f5457
terraform: fix missing arg to Printf
2014-09-21 22:36:34 -07:00
Mitchell Hashimoto
157843725d
terraform: refreshing tainted resources works
2014-09-19 22:28:13 -06:00
Armon Dadgar
5e0765c24a
terraform: Refresh handles tainted instances
2014-09-19 16:24:17 -07:00
Armon Dadgar
1d96373a54
terraform: deepcopy should not alloc when nil
2014-09-19 16:15:52 -07:00
Armon Dadgar
8e421caba1
terraform: show each tainted ID
2014-09-19 15:04:21 -07:00
Armon Dadgar
ff42a92636
terraform: State string includes how many resources are tainted
2014-09-19 14:55:59 -07:00
Armon Dadgar
a1c4a27715
terraform: Drop useless field
2014-09-19 14:45:12 -07:00
Armon Dadgar
68614aeb79
terraform: Guard against future version changes
2014-09-18 13:43:26 -07:00
Armon Dadgar
ec4be66f63
terraform: ensure file version is set and serial incremented
2014-09-18 13:38:36 -07:00
Mitchell Hashimoto
15564b04a5
command: tests pass
2014-09-18 10:40:35 -07:00
Armon Dadgar
4db7282072
terraform: first pass at state file upgrades
2014-09-17 18:24:53 -07:00
Armon Dadgar
18a91a87c9
terraform: first stab at read/write of state
2014-09-17 18:13:38 -07:00
Mitchell Hashimoto
1aff5e98e1
terraform: some deepcopying going on
2014-09-17 17:18:17 -07:00
Mitchell Hashimoto
9b2b3a963f
ResourceDiff => InstanceDiff
2014-09-17 16:33:24 -07:00
Armon Dadgar
71782c57b3
terraform: emit ID of tainted resource in string
2014-09-16 17:37:39 -07:00