-
Notifications
You must be signed in to change notification settings - Fork 8
/
outputs.tf
71 lines (70 loc) · 3.32 KB
/
outputs.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
//==================================================
// Outputs that match the input variables
//==================================================
output "dynamic_depends_on" {
description = "The value of the `dynamic_depends_on` input variable."
value = local.var_dynamic_depends_on
}
output "command_unix" {
description = "The value of the `command_unix` input variable, or the default value if the input was `null`, with all carriage returns removed."
value = local.command_unix
}
output "command_windows" {
description = "The value of the `command_windows` input variable, or the default value if the input was `null`, with all carriage returns removed."
value = local.command_windows
}
output "environment" {
description = "The value of the `environment` input variable, or the default value if the input was `null`, with all carriage returns removed."
value = local.env_vars
}
output "working_dir" {
description = "The value of the `working_dir` input variable."
value = local.var_working_dir
}
output "fail_on_nonzero_exit_code" {
description = "The value of the `fail_on_nonzero_exit_code` input variable, or the default value if the input was `null`."
value = local.var_fail_on_nonzero_exit_code
}
output "fail_on_stderr" {
description = "The value of the `fail_on_stderr` input variable, or the default value if the input was `null`."
value = local.var_fail_on_stderr
}
output "force_wait_for_apply" {
description = "The value of the `force_wait_for_apply` input variable, or the default value if the input was `null`."
value = local.var_force_wait_for_apply
}
output "timeout" {
description = "The value of the `timeout` input variable."
value = local.var_timeout
}
output "fail_on_timeout" {
description = "The value of the `fail_on_timeout` input variable, or the default value if the input was `null`."
value = local.var_fail_on_timeout
}
output "unix_interpreter" {
description = "The value of the `unix_interpreter` input variable, or the default value if the input was `null`."
value = local.var_unix_interpreter
}
//==================================================
// Outputs generated by this module
//==================================================
output "stdout" {
description = "The stdout output of the shell command, with all carriage returns and trailing newlines removed."
value = local.stdout_censored
}
output "stderr" {
description = "The stderr output of the shell command, with all carriage returns and trailing newlines removed."
value = local.stderr_censored
}
output "exit_code" {
description = "The exit status code of the shell command. If the `timeout` input variable was provided and the command timed out, this will be `null`."
value = local.exitcode
}
output "null_command_windows" {
description = "A command that does nothing on Windows systems. You can use this output as the value for the `command_windows` input if you don't want the module to do anything on Windows systems."
value = local.null_command_windows
}
output "null_command_unix" {
description = "A command that does nothing on Unix-based systems. You can use this output as the value for the `command_unix` input if you don't want the module to do anything on Unix-based systems."
value = local.null_command_unix
}