terraform/website
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
..
docs website: Fix confusing example for local-exec provisioner 2020-11-18 08:04:41 -08:00
guides website: Decommission derelict "guides" section, move some content to "intro" 2020-10-26 18:21:29 -07:00
intro website/intro: remove outdated examples section (#26932) 2020-11-16 14:05:17 -05:00
layouts website: Break up main Modules and Module Development pages 2020-11-17 16:30:51 -08:00
upgrade-guides website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
README.md website: A note about where the root parts of the website live now 2017-06-27 14:40:13 -07:00

README.md

Terraform Documentation

This directory contains the portions of the Terraform website that pertain to the core functionality, excluding providers and the overall configuration.

The files in this directory are intended to be used in conjunction with the terraform-website repository, which brings all of the different documentation sources together and contains the scripts for testing and building the site as a whole.