forked from flaupretre/terraform-ssh-tunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
executable file
·44 lines (37 loc) · 943 Bytes
/
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
variable "shell_cmd" {
type = string
description = "Command to run a shell"
default = "bash"
}
variable "kubectl_cmd" {
type = string
description = "Kubectl command to use"
default = "kubectl"
}
variable "resource" {
type = string
description = "The target resource. Can be a service, pod, deployment, etc. See kubectl port-forward for more info."
}
variable "target_port" {
type = number
description = "Target port number"
}
variable "local_port" {
type = number
description = "Local port number"
}
variable "timeout" {
type = string
description = "Timeout value ensures tunnel won't remain open forever"
default = "30m"
}
variable "tunnel_check_sleep" {
type = string
description = "extra time to wait for kubectl tunnel to connect"
default = "0s"
}
variable "external" {
type = bool
description = "A flag to quickly disable the terraform managed tunnel to run it manually."
default = false
}