-
Notifications
You must be signed in to change notification settings - Fork 29
/
variables.tf
59 lines (48 loc) · 2.24 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
variable "domain" {
description = "The domain to deploy applications under."
type = string
}
variable "email" {
description = "The email address used for requesting certificates from Lets Encrypt."
type = string
}
variable "letsencrypt_staging" {
description = "Boolean flag to decide whether the Let's Encrypt staging server should be used."
type = bool
default = false
}
variable "files" {
description = "User files to be copied to the application's working directory (`/var/app`). The file's content must be provided to Terraform as a base64 encoded string."
type = list(object({ filename : string, content : string }))
default = []
}
variable "env" {
description = "List of environment variables (KEY=VAL) to be made available within the application container and also Docker Compose (useful for overriding configuration options)."
type = map(string)
default = {}
}
variable "container" {
description = "Object containing the definition of the container to deploy. The key and values from this object are interpolated directly into the Docker Compose file used to run your application, refer to the Docker Compose documentation for more information."
type = any
default = {}
}
variable "cloudinit_part" {
description = "Additional cloud-init configuration used to setup and/or customise the instance beyond the defaults provided by this module."
type = list(object({ content_type : string, content : string }))
default = []
}
variable "enable_webhook" {
description = "Enabling this feature will expose an endpoint (`/hooks/update-env`) on the server allowing updates to be made to the application's environment variables via a PATCH request. The webhook service will trigger Docker Compose to pull the latest version of the application's container image and restart the service."
type = bool
default = false
}
variable "docker_compose_image" {
description = "Docker image used to run Docker Compose commands. (default: docker/compose)"
type = string
default = "docker/compose"
}
variable "docker_compose_tag" {
description = "Tagged version of Docker Compose to use. (default: latest)"
type = string
default = "latest"
}