From b32c5eaddb3ae65e176d7233cc6986f49be8f88a Mon Sep 17 00:00:00 2001 From: iTEx-aaa <66124929+iTEx-aaa@users.noreply.github.com> Date: Fri, 29 May 2020 16:33:16 +0300 Subject: [PATCH] Update index.html.markdown as with this version of this doc users receives a warning like this if them use quotes with parameters of 'on_failure' setting: " on_failure = "continue" In this context, keywords are expected literally rather than in quotes. Terraform 0.11 and earlier required quotes, but quoted keywords are now deprecated and will be removed in a future version of Terraform. Remove the quotes surrounding this keyword to silence this warning. " same with: when = "destroy" --- website/docs/provisioners/index.html.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/provisioners/index.html.markdown b/website/docs/provisioners/index.html.markdown index 45a7e43b5..374ed5f39 100644 --- a/website/docs/provisioners/index.html.markdown +++ b/website/docs/provisioners/index.html.markdown @@ -199,7 +199,7 @@ which is covered in detail below. ## Destroy-Time Provisioners -If `when = "destroy"` is specified, the provisioner will run when the +If `when = destroy` is specified, the provisioner will run when the resource it is defined within is _destroyed_. ```hcl @@ -207,7 +207,7 @@ resource "aws_instance" "web" { # ... provisioner "local-exec" { - when = "destroy" + when = destroy command = "echo 'Destroy-time provisioner'" } } @@ -267,9 +267,9 @@ By default, provisioners that fail will also cause the Terraform apply itself to fail. The `on_failure` setting can be used to change this. The allowed values are: -- `"continue"` - Ignore the error and continue with creation or destruction. +- `continue` - Ignore the error and continue with creation or destruction. -- `"fail"` - Raise an error and stop applying (the default behavior). If this is a creation provisioner, +- `fail` - Raise an error and stop applying (the default behavior). If this is a creation provisioner, taint the resource. Example: @@ -280,7 +280,7 @@ resource "aws_instance" "web" { provisioner "local-exec" { command = "echo The server's IP address is ${self.private_ip}" - on_failure = "continue" + on_failure = continue } } ```