-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
executable file
·54 lines (45 loc) · 1.63 KB
/
variables.tf
File metadata and controls
executable file
·54 lines (45 loc) · 1.63 KB
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
variable "artifact_src_path" {
type = string
description = "The path in the Docker container from which to copy the artifact."
}
variable "artifact_src_type" {
type = string
description = "The type of artifact to copy. Accepts 'zip' or 'directory'."
default = "zip"
validation {
condition = var.artifact_src_type == "zip" || var.artifact_src_type == "directory"
error_message = "The `artifact_src_type` variable must be set to either 'zip' or 'directory'."
}
}
variable "artifact_dst_directory" {
type = string
description = "The destination directory on the host machine to which the artifact will be copied."
default = ""
}
variable "docker_build_context" {
type = string
description = "The context to use when building the Docker image."
}
variable "docker_build_target" {
type = string
description = "The target to use when building the Docker image."
}
variable "docker_build_args" {
type = map(string)
description = "Additional arguments to pass to Docker during the build process."
default = {}
}
variable "force_rebuild_id" {
type = string
description = "A unique identifier that, when changed, will force the Docker image to be rebuilt."
default = ""
}
variable "os_compatibility" {
description = "The operating system of Terrafrom environment. Accepts 'unix' or 'windows'."
type = string
default = "unix"
validation {
condition = var.os_compatibility == "unix" || var.os_compatibility == "windows"
error_message = "The `os_compatibility` variable must be set to either 'unix' or 'windows'."
}
}