core: docs for targeted operations

This commit is contained in:
Paul Hinze 2015-03-27 17:24:15 -05:00
parent 97acccd3ed
commit 23d005b0e8
4 changed files with 15 additions and 0 deletions

View File

@ -44,6 +44,9 @@ The command-line flags are all optional. The list of available flags are:
* `-state-out=path` - Path to write updated state file. By default, the
`-state` path will be used.
* `-target=resource` - Resource to target. Operation will be limited to this
resource and its dependencies. This flag can be used multiple times.
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This
flag can be set multiple times.

View File

@ -21,3 +21,9 @@ confirmation before destroying.
This command accepts all the flags that the
[apply command](/docs/commands/apply.html) accepts. If `-force` is
set, then the destroy confirmation will not be shown.
The `-target` flag, instead of affecting "dependencies" will instead also
destroy any resources that _depend on_ the target(s) specified.
The behavior of any `terraform destroy` command can be previewed at any time
with an equivalent `terraform plan -destroy` command.

View File

@ -45,6 +45,9 @@ The command-line flags are all optional. The list of available flags are:
* `-state=path` - Path to the state file. Defaults to "terraform.tfstate".
* `-target=resource` - Resource to target. Operation will be limited to this
resource and its dependencies. This flag can be used multiple times.
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This
flag can be set multiple times.

View File

@ -36,6 +36,9 @@ The command-line flags are all optional. The list of available flags are:
* `-state-out=path` - Path to write updated state file. By default, the
`-state` path will be used.
* `-target=resource` - Resource to target. Operation will be limited to this
resource and its dependencies. This flag can be used multiple times.
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This
flag can be set multiple times.