Paul Hinze
05c0998d2d
core: store deeply nested modules in a consistent order in the state
...
We were only comparing the last element of the module, which meant that
deeply nested modules with the same name but different ancestry had an
undefined sort order, which could cause inconsistencies in state
storage and potentially break remote state MD5 checksumming.
2015-10-20 14:35:57 -05:00
Paul Hinze
fca44bdec3
core: state metadata difference should bump serial
...
Remote state includes MD5-based checksumming to protect against State
conflicts. This can generate improper conflicts with states that differ
only in their Schema version.
We began to see this issue with
https://github.com/hashicorp/terraform/pull/3470 which changes the
"schema_version" of aws_key_pairs.
2015-10-20 12:28:12 -05:00
Mitchell Hashimoto
96a04c16f6
terraform: state ModuleOrphans should return grandchild orphans
2015-07-19 13:41:57 -07:00
Paul Hinze
f51fb5e127
providers/aws: handle empty instancestate in state migration
...
fixes #1309
2015-03-26 13:07:04 -05:00
Mitchell Hashimoto
f68f285f72
terraform: test case for higher S1 serial
2015-03-25 15:39:33 -07:00
Mitchell Hashimoto
0d4c7887c5
terraform: don't increment state if one is nil
2015-03-25 15:38:24 -07: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
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
b041f48e56
terraform: State.Equal
2015-02-20 13:39:49 -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
Armon Dadgar
d821f7aaa6
terraform: Make RemoteState more flexible
2014-12-10 13:27:09 -08:00
Armon Dadgar
85bb01acd7
terraform: Fixing unit test
2014-12-10 13:27:09 -08:00
Armon Dadgar
1ec0602cab
terraform: Add new remote storage fields to state
2014-12-10 13:27:06 -08:00
Armon Dadgar
9707eb3fc8
terraform: Add dependencies field to modules
2014-11-21 15:34:23 -08:00
Mitchell Hashimoto
d7786473df
fmt
2014-10-11 12:57:06 -07:00
Mitchell Hashimoto
d2e836275b
terraform: sort the modules in the state [GH-318]
2014-10-11 12:47:06 -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
Armon Dadgar
5adc55415b
terraform: testing new state file format
2014-09-18 10:51:47 -07:00
Armon Dadgar
1dcdd7a336
terraform: moving state v1 tests
2014-09-18 10:21:25 -07:00
Mitchell Hashimoto
9b2b3a963f
ResourceDiff => InstanceDiff
2014-09-17 16:33:24 -07:00
Mitchell Hashimoto
95f3e626a5
terraform: modify the ResourceProvider API super hardcore
2014-09-16 16:20:11 -07:00
Armon Dadgar
4b0f970659
terraform: fixing test errors
2014-09-16 15:09:40 -07:00
Armon Dadgar
104b28e19e
terraform: Remove ResourceConnectionInfo, use raw map
2014-07-15 12:34:07 -07:00
Armon Dadgar
94c95afa48
terraform: Passthrough provisioner level connection info
2014-07-15 12:34:06 -07:00
Armon Dadgar
3e608ee8b9
terraform: Do not persist sensitive state
2014-07-10 12:01:26 -07:00
Mitchell Hashimoto
cb52983c84
terraform: MergeDiff removes removed attributes in diff
2014-07-09 10:04:14 -07:00
Mitchell Hashimoto
7eacacbff2
terraform: MergeDiff can take nil diff
2014-06-23 12:32:04 -07:00
Mitchell Hashimoto
e8808db8c3
terraform: MergeDiff uses a Diff as an argument
2014-06-19 14:08:10 -07:00
Mitchell Hashimoto
2dff411679
terraform: read/write state to reader/writer
2014-06-18 20:54:22 -07:00
Mitchell Hashimoto
fd39728cbb
terraform: start using the RawConfig interpolations
2014-06-12 17:51:38 -07:00
Mitchell Hashimoto
8358e7dc1f
terraform: support MergeDiff for nil ResourceState
2014-06-05 07:04:44 -07:00
Mitchell Hashimoto
082e784566
terraform: computeID
2014-06-05 07:01:51 -07:00
Mitchell Hashimoto
7c6920bba1
terraform: diff/state work better together, merge
2014-06-05 06:57:06 -07:00