core: docs for targeted operations
This commit is contained in:
parent
97acccd3ed
commit
23d005b0e8
|
@ -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-out=path` - Path to write updated state file. By default, the
|
||||||
`-state` path will be used.
|
`-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
|
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This
|
||||||
flag can be set multiple times.
|
flag can be set multiple times.
|
||||||
|
|
||||||
|
|
|
@ -21,3 +21,9 @@ confirmation before destroying.
|
||||||
This command accepts all the flags that the
|
This command accepts all the flags that the
|
||||||
[apply command](/docs/commands/apply.html) accepts. If `-force` is
|
[apply command](/docs/commands/apply.html) accepts. If `-force` is
|
||||||
set, then the destroy confirmation will not be shown.
|
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.
|
||||||
|
|
|
@ -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".
|
* `-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
|
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This
|
||||||
flag can be set multiple times.
|
flag can be set multiple times.
|
||||||
|
|
||||||
|
|
|
@ -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-out=path` - Path to write updated state file. By default, the
|
||||||
`-state` path will be used.
|
`-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
|
* `-var 'foo=bar'` - Set a variable in the Terraform configuration. This
|
||||||
flag can be set multiple times.
|
flag can be set multiple times.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue