terraform/helper/resource
Paul Hinze a96a3372c6 provider/template: don't diff when there's no diff
This reworks the template lifecycle a bit such that we get nicer diff
behavior.

First, we tick ForceNew on for both filename and vars, so that the diff
indicates that the template will be "replaced" on change. This is mostly
cosmetic, but it also tracks conceptually with the fact that the
identifier we use is a hash of the contents, so any change essentially
makes a "new resource".

Second, we change the Exists implementation to only return `false` when
there has been a change in the rendered template. This lets descendent
resources see the computed value changing so that they'll properly
trigger in the plan.

Fixes #1898
Refs #1866 (but does not fix, there's another deeper issue there)
2015-05-11 10:38:19 -05:00
..
id.go helper/resource: ok let's actually use RFC4122 2015-04-22 13:16:44 -05:00
id_test.go helper/resource: add UniqueId() helper 2015-04-22 12:53:05 -05:00
map.go ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
map_test.go helper/resource: automatically validate resources 2014-07-08 10:17:36 -07:00
resource.go ResourceDiff => InstanceDiff 2014-09-17 16:33:24 -07:00
state.go Better document StateChangeConf.WaitForState 2015-04-28 12:33:23 -04:00
state_test.go helper/resource: add Retry function 2014-10-07 21:44:51 -07:00
testing.go provider/template: don't diff when there's no diff 2015-05-11 10:38:19 -05:00
testing_test.go helper/resource/testing: unit tests to cover #1770 2015-05-01 11:22:06 -05:00
wait.go helper/resource: RetryError for quitting quickly 2014-10-17 18:28:03 -07:00
wait_test.go helper/resource: RetryError for quitting quickly 2014-10-17 18:28:03 -07:00