forked from terraform-google-modules/terraform-google-gcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
113 lines (95 loc) · 3.66 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/**
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "enabled" {
description = "Flag to optionally disable usage of this module."
type = bool
default = true
}
variable "upgrade" {
description = "Whether to upgrade gcloud at runtime"
type = bool
default = true
}
variable "skip_download" {
description = "Whether to skip downloading gcloud (assumes gcloud is already available outside the module)"
type = bool
default = true
}
variable "module_depends_on" {
description = "List of modules or resources this module depends on."
type = list(any)
default = []
}
variable "create_cmd_entrypoint" {
description = "On create, the command entrypoint you'd like to use. Can also be set to a custom script. Module's bin directory will be prepended to path."
default = "gcloud"
}
variable "create_cmd_body" {
description = "On create, the command body you'd like to run with your entrypoint."
default = "info"
}
variable "create_cmd_triggers" {
description = "List of any additional triggers to re-run the create command execution when either of values in the maps change. Some keys are reserved and will be overwritten if specified in this option. (eg. `md5`, `arguments`, `download_gcloud_command`, `download_jq_command`, etc. See details in [the source](https://github.com/terraform-google-modules/terraform-google-gcloud/blob/master/main.tf).)"
type = map(any)
default = {}
}
variable "destroy_cmd_entrypoint" {
description = "On destroy, the command entrypoint you'd like to use. Can also be set to a custom script. Module's bin directory will be prepended to path."
default = "gcloud"
}
variable "destroy_cmd_body" {
description = "On destroy, the command body you'd like to run with your entrypoint."
default = "info"
}
variable "additional_components" {
description = "Additional gcloud CLI components to install. Defaults to none. Valid value are components listed in `gcloud components list`"
default = []
}
variable "platform" {
description = "Platform CLI will run on. Defaults to linux. Valid values: linux, darwin"
default = "linux"
}
variable "service_account_key_file" {
description = "Path to service account key file to run `gcloud auth activate-service-account` with. Optional."
default = ""
}
variable "use_tf_google_credentials_env_var" {
description = "Use `GOOGLE_CREDENTIALS` environment variable to run `gcloud auth activate-service-account` with. Optional."
default = false
}
variable "jq_version" {
description = "The jq version to download."
default = "1.6"
}
variable "gcloud_sdk_version" {
description = "The gcloud sdk version to download."
default = "281.0.0"
}
variable "gcloud_download_url" {
description = "Custom gcloud download url. Optional."
type = string
default = ""
}
variable "jq_download_url" {
description = "Custom jq download url. Optional."
type = string
default = ""
}
variable "use_existing_context" {
description = "Use local kube context instead of fetching kubeconfig via gcloud again"
type = bool
default = false
}