This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
/
variables.tf
71 lines (60 loc) · 2.9 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
variable "depends" {
description = "(Optional) Equivalent to the `depends_on` input for a data/resource."
default = []
}
variable "command" {
description = "(Optional) The command to run on creation when the module is used on a Unix machine."
default = null
}
variable "command_windows" {
description = "(Optional) The command to run on creation when the module is used on a Windows machine. If not specified, will default to be the same as the `command` variable."
default = null
}
variable "command_when_destroy" {
description = "(Optional) The command to run on destruction when the module is used on a Unix machine."
default = null
}
variable "command_when_destroy_windows" {
description = "(Optional) The command to run on destruction when the module is used on a Windows machine. If not specified, will default to be the same as the `command_when_destroy` variable."
default = null
}
# warning! the outputs are not updated even if the trigger re-runs the command!
variable "trigger" {
description = "(Optional) A string value that, when changed, will cause the script to be re-run (will first run the destroy command if this module already exists in the state)."
default = ""
}
variable "triggers" {
type = any
default = {}
description = "(Optional) A map value that, when changed, will cause the script to be re-run (will first run the destroy command if this module already exists in the state)."
}
variable "environment" {
type = map(string)
default = {}
description = "(Optional) Map of environment variables to pass to the command. Will be merged with `sensitive_environment` and `triggerless_environment`."
}
variable "sensitive_environment" {
type = map(string)
default = {}
description = "(Optional) Map of (sentitive) environment variables to pass to the command. Will be merged with `environment` and `triggerless_environment`."
}
variable "triggerless_environment" {
type = map(string)
default = {}
description = "(Optional) Map of environment variables to pass to the command, which will NOT trigger a resource re-create if changed. Will be merged with `environment` and `sensitive_environment`."
}
variable "working_dir" {
type = string
default = ""
description = "(Optional) The working directory where command will be executed."
}
variable "fail_on_error" {
type = bool
default = false
description = "(Optional) Whether a Terraform error should be thrown if the command throws an error. If true, nothing will be returned from this module and Terraform will fail the apply. If false, the error message will be returned in `stderr` and the error code will be returned in `exitcode`. Default: `false`."
}
variable "sensitive_outputs" {
type = bool
default = false
description = "(Optional) Whether the outputs of `stdout` and `stderr` should be marked as sensitive."
}