Paul Hinze
97acccd3ed
core: targeted operations
...
Add `-target=resource` flag to core operations, allowing users to
target specific resources in their infrastructure. When `-target` is
used, the operation will only apply to that resource and its
dependencies.
The calculated dependencies are different depending on whether we're
running a normal operation or a `terraform destroy`.
Generally, "dependencies" refers to ancestors: resources falling
_before_ the target in the graph, because their changes are required to
accurately act on the target.
For destroys, "dependencies" are descendents: those resources which fall
_after_ the target. These resources depend on our target, which is going
to be destroyed, so they should also be destroyed.
2015-03-31 14:49:38 -05:00
Mitchell Hashimoto
0c6d133d61
command/refresh: get rid of remote package
2015-02-23 15:13:55 -08:00
Phil Kates
b211d69dde
Fix typo in refresh command error
...
Noticed this while I was digging around to see how the commands work.
2015-01-17 15:43:04 -08:00
Kevin van Zonneveld
07505ed159
Fix typo: expacts -> expects
2015-01-03 17:59:55 +01:00
Armon Dadgar
b6265cf1a2
command/refresh: Remote enable
2014-12-10 13:27:09 -08:00
Armon Dadgar
5b745e5d46
command: Run validation before asking for input. Fixes #602
2014-12-08 18:32:03 -08:00
Mitchell Hashimoto
16b023bd2b
command: ask for the proper level of input
2014-10-08 10:29:54 -07:00
Mitchell Hashimoto
817f0d9f30
command: don't ask for input if terraform.tfvars file given [GH-346]
2014-10-01 08:37:57 -07:00
Mitchell Hashimoto
63453f3f1a
command: apply and refresh ask for input
2014-09-29 12:46:58 -07:00
Mitchell Hashimoto
ed538a9594
command: Get command, not functional yet. Converted to use modules.
2014-09-22 10:56:50 -07:00
Alex Gaynor
46154ca1d3
Fixed a ton of typos in docs and comments
2014-08-07 00:19:56 -07:00
Mitchell Hashimoto
642fed0356
command: terraform.tfvars loaded by default if it exists
2014-08-05 09:32:01 -07:00
Mitchell Hashimoto
b172f45b94
command: make state unexported on Meta
2014-07-27 22:58:35 -07:00
Mitchell Hashimoto
80ce9ad513
command: f.Close instead of defer
2014-07-27 22:56:55 -07:00
Armon Dadgar
f26f432f4c
command/refresh: Testing backup option
2014-07-27 22:58:12 -04:00
Armon Dadgar
54cc66367d
command: Adding backup of state file
2014-07-27 18:09:04 -04:00
Mitchell Hashimoto
ef6fba754d
command: refactor so Context never plans
2014-07-26 17:51:15 -07:00
Mitchell Hashimoto
3534470ca3
command: -var flag works
2014-07-18 11:37:27 -07:00
Mitchell Hashimoto
6c8c09c784
command/*: only Plan on the Apply
2014-07-14 11:48:03 -07:00
Mitchell Hashimoto
3a851bece0
command: convert all to use the new Meta thing
2014-07-12 20:37:30 -07:00
Mitchell Hashimoto
6c736bd3c4
command: introduce Meta and "-no-color" option
2014-07-12 20:21:46 -07:00
Mitchell Hashimoto
3d35158170
command: update synopsis to be better
2014-07-12 19:28:38 -07:00
Mitchell Hashimoto
e39378b254
command/refresh: better comment
2014-07-11 22:01:33 -07:00
Mitchell Hashimoto
ff75d15f51
command/refresh: better error message if bad state
2014-07-11 22:00:55 -07:00
Mitchell Hashimoto
9a6f1e594b
command/refresh: default state path, optional args
2014-07-11 21:56:43 -07:00
Mitchell Hashimoto
d3d45ca064
command: fix some issues with refresh, tests passing
2014-07-07 21:12:12 -07:00
Mitchell Hashimoto
43889a8c59
command: validate context
2014-07-03 13:12:45 -07:00
Mitchell Hashimoto
a6ae7230d1
command: use new API
2014-07-03 11:46:40 -07:00
Mitchell Hashimoto
1819b6fb34
command/refresh
2014-06-27 11:09:01 -07:00