Merge pull request #25076 from iTEx-aaa/patch-1

Update index.html.markdown (removing quotes from keywords in provisioner docs)
This commit is contained in:
Petros Kolyvas 2020-07-24 10:17:39 -03:00 committed by GitHub
commit c2d6276238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -199,7 +199,7 @@ which is covered in detail below.
## Destroy-Time Provisioners ## 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_. resource it is defined within is _destroyed_.
```hcl ```hcl
@ -207,7 +207,7 @@ resource "aws_instance" "web" {
# ... # ...
provisioner "local-exec" { provisioner "local-exec" {
when = "destroy" when = destroy
command = "echo 'Destroy-time provisioner'" 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 itself to fail. The `on_failure` setting can be used to change this. The
allowed values are: 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. taint the resource.
Example: Example:
@ -280,7 +280,7 @@ resource "aws_instance" "web" {
provisioner "local-exec" { provisioner "local-exec" {
command = "echo The server's IP address is ${self.private_ip}" command = "echo The server's IP address is ${self.private_ip}"
on_failure = "continue" on_failure = continue
} }
} }
``` ```