bd893ac35c3f3f58e8a9e9c46322cee75c97e591

Author
George Kontridze <george.kontridze@gmail.com>
Committer
George Kontridze <george.kontridze@gmail.com>
Date

Message

Merge pull request #1 from dlsniper/terraform

Update to latest Terraform release 0.6.1

Diff

This diff is truncated to protect this page.

 1diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md
 2index 3f357b18311014a6cac79fe4e5fffeeb015a13de..44e38a1c0b2761bbbad77bf4aa3a28ee0e9b0be6 100644
 3--- a/plugins/terraform/README.md
 4+++ b/plugins/terraform/README.md
 5@@ -4,7 +4,7 @@ Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely a
 6 
 7 ### Requirements
 8 
 9- * [Terraform](https://teraform.io/)
10+ * [Terraform](https://terraform.io/)
11 
12 ### Usage
13 
14diff --git a/plugins/terraform/_terraform b/plugins/terraform/_terraform
15index 1252bb9619415c8d08cd36e53249061e55876dcd..11740dc4819cbda50cfb63dfda7ca14e16831f1d 100644
16--- a/plugins/terraform/_terraform
17+++ b/plugins/terraform/_terraform
18@@ -13,8 +13,8 @@ _terraform_cmds=(
19     'push:Uploads the local state to the remote server'
20     'refresh:Update local state file against real resources'
21     'remote:Configures remote state management'
22-    'taint:Manually forcing a destroy and recreate on the next plan/apply'
23     'show:Inspect Terraform state or plan'
24+    'taint:Manually forcing a destroy and recreate on the next plan/apply'
25     'version:Prints the Terraform version'
26 )
27 
28@@ -26,6 +26,7 @@ __apply() {
29         '-refresh=[(true) Update state prior to checking for differences. This has no effect if a plan file is given to apply.]' \
30         '-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
31         '-state-out=[(path) Path to write state to that is different than "-state". This can be used to preserve the old state.]' \
32+        '-target=[(resource) A Resource Address to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
33         '-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
34         '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
35 }
36@@ -33,11 +34,13 @@ __apply() {
37 __destroy() {
38     _arguments \
39         '-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
40-        '-force[Do not ask for input for destroy confirmation.]' \
41+        '-force[If set, then the destroy confirmation will not be shown.]' \
42+        '-input=[(true) Ask for input for variables if not directly set.]' \
43         '-no-color[If specified, output will not contain any color.]' \
44         '-refresh=[(true) Update state prior to checking for differences. This has no effect if a plan file is given to apply.]' \
45-        '-state=[Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
46-        '-state-out=[Path to write state to that is different than "-state". This can be used to preserve the old state.]' \
47+        '-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
48+        '-state-out=[(path) Path to write state to that is different than "-state". This can be used to preserve the old state.]' \
49+        '-target=[(resource) Instead of affecting "dependencies" will instead also destroy any resources that depend on the target(s) specified.]' \
50         '-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
51         '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
52 }
53@@ -49,7 +52,9 @@ __get() {
54 
55 __graph() {
56     _arguments \
57-        '-module-depth=[(n) The maximum depth to expand modules. By default this is zero, which will not expand modules at all.]'
58+        '-draw-cycles[Highlight any cycles in the graph with colored edges. This helps when diagnosing cycle errors.]' \
59+        '-module-depth=[(n) The maximum depth to expand modules. By default this is zero, which will not expand modules at all.]' \
60+        '-verbose[Generate a verbose, "worst-case" graph, with all nodes for potential operations in place.]'
61 }
62 
63 __init() {
64@@ -63,49 +68,50 @@ __init() {
65 
66 __output() {
67     _arguments \
68-        '-state=[(path) Path to the state file to read. Defaults to "terraform.tfstate".]'
69+        '-state=[(path) Path to the state file to read. Defaults to "terraform.tfstate".]' \
70+        '-module=[(module_name) The module path which has needed output. By default this is the root path. Other modules can be specified by a period-separated list.]'
71 }
72 
73 __plan() {
74     _arguments \
75         '-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with" .backup" extension. Set to "-" to disable backup.]' \
76         '-destroy[If set, a plan will be generated to destroy all resources managed by the given configuration and state.]' \
77+        '-detailed-exitcode[Return a detailed exit code when the command exits. When provided, this argument changes the exit codes and their meanings to provide more granular information about what the resulting plan contains]' \
78         '-input=[(true) Ask for input for variables if not directly set.]' \
79         '-module-depth=[(n) Specifies the depth of modules to show in the output. This does not affect the plan itself, only the output shown. By default, this is zero. -1 will expand all.]' \
80         '-no-color[If specified, output will not contain any color.]' \
81         '-out=[(path) Write a plan file to the given path. This can be used as input to the "apply" command.]' \
82         '-refresh=[(true) Update state prior to checking for differences.]' \
83         '-state=[(statefile) Path to a Terraform state file to use to look up Terraform-managed resources. By default it will use the state "terraform.tfstate" if it exists.]' \
84+        '-target=[(resource) A Resource Address to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
85         '-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
86         '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
87 }
88 
89 __push() {
90     _arguments \
91-        '-force[Forces the upload of the local state, ignoring any conflicts. This should be used carefully, as force pushing can cause remote state information to be lost.]'
92+        '-atlas-address=[(url) An alternate address to an Atlas instance. Defaults to https://atlas.hashicorp.com.]' \
93+        '-upload-modules=[(true) If true (default), then the modules being used are all locked at their current checkout and uploaded completely to Atlas. This prevents Atlas from running terraform get for you.]' \