From 740c9865f36c5d5bf245d395585aca8d29676854 Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Thu, 19 Sep 2019 13:40:29 -0400 Subject: [PATCH 1/2] Add an example with string keys to taint to demonstrate escaping quotes --- website/docs/commands/taint.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/commands/taint.html.markdown b/website/docs/commands/taint.html.markdown index ef7e233f7..4785a30fa 100644 --- a/website/docs/commands/taint.html.markdown +++ b/website/docs/commands/taint.html.markdown @@ -41,7 +41,8 @@ the output from other commands, such as: * `aws_instance.foo` * `aws_instance.bar[1]` - * `module.foo.module.bar.aws_instance.baz` + * `aws_instance.baz[\"key\"]` + * `module.foo.module.bar.aws_instance.qux` The command-line flags are all optional. The list of available flags are: From 0e1f12e5704ad205da816e5451d0c0eb3107ec90 Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Thu, 19 Sep 2019 16:46:12 -0400 Subject: [PATCH 2/2] Add some context for the addition --- website/docs/commands/taint.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/commands/taint.html.markdown b/website/docs/commands/taint.html.markdown index 4785a30fa..8108ff433 100644 --- a/website/docs/commands/taint.html.markdown +++ b/website/docs/commands/taint.html.markdown @@ -41,7 +41,7 @@ the output from other commands, such as: * `aws_instance.foo` * `aws_instance.bar[1]` - * `aws_instance.baz[\"key\"]` + * `aws_instance.baz[\"key\"]` (quotes in resource addresses must be escaped on the command line, so that they are not interpreted by your shell) * `module.foo.module.bar.aws_instance.qux` The command-line flags are all optional. The list of available flags are: