From 324b1702a2e634eba9bf5db8c6cdbb6553339b24 Mon Sep 17 00:00:00 2001 From: ketzacoatl Date: Tue, 28 Apr 2015 15:20:13 -0400 Subject: [PATCH] Add an example to module docs: terraform taint While the taint docs make mention of this capabilities, it isn't clear what to do. --- website/source/docs/modules/usage.html.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/website/source/docs/modules/usage.html.markdown b/website/source/docs/modules/usage.html.markdown index 8b671163a..6094fb8b1 100644 --- a/website/source/docs/modules/usage.html.markdown +++ b/website/source/docs/modules/usage.html.markdown @@ -104,3 +104,15 @@ But if we set `-module-depth=-1`, the graph will look like this: Other commands work similarly with modules. Note that the `-module-depth` flag is purely a formatting flag; it doesn't affect what modules are created or not. + + +## Tainting resources within a module + +The [taint command](/docs/commands/taint.html) can be used to _taint_ +specific resources within a module: + +``` +terraform taint -module=salt_master aws_instance.salt_master +``` + +It is not (yet) possible to taint an entire module.