terraform/website/docs/provisioners
Martin Atkins af3f78975e website: Fix confusing example for local-exec provisioner
The local-exec provisioner documentation includes an example which refers
to an attribute of the current resource using its full traversal path,
rather than using "self" as we typically expect.

Due to some coincidences in how Terraform builds the dependency graph,
referring to the resource in this way happens to work when the resource
has only a single instance (the graph builder just skips that
self-referential dependency edge), but it fails if the user later tries
to add "count" or "for_each" to the resource, because at that point all
of the instances become dependent on one another, which creates a
dependency cycle.

Using "self" to access the current instance attributes is the usual
approach, so I've updated the documentation to show that.
2020-11-18 08:04:41 -08:00
..
chef.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
connection.html.markdown communicator/ssh: Add support for Windows targets (#26865) 2020-11-12 10:00:48 -05:00
file.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
habitat.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
index.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
local-exec.html.markdown website: Fix confusing example for local-exec provisioner 2020-11-18 08:04:41 -08:00
null_resource.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
puppet.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
remote-exec.html.markdown website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
salt-masterless.html.md website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00