generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
variables.tf
131 lines (113 loc) · 3.46 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
variable "deployment_name" {
type = string
default = null
description = "Override the deployment name in Kubernetes"
}
variable "kubernetes_namespace" {
type = string
default = null
description = "Kubernetes namespace override"
}
variable "namespace_creation_enabled" {
type = bool
default = false
description = "Enable this if the Kubernetes namespace does not already exist"
}
variable "replicas" {
type = number
default = 1
description = "Number of replicas in the Kubernetes deployment"
}
variable "deployment_annotations" {
type = map(any)
default = {}
description = "Annotations to add to the Kubernetes deployment"
}
variable "service_account_annotations" {
type = map(any)
default = {}
description = "Annotations to add to the Kubernetes service account"
}
variable "agent_image" {
type = string
default = "hashicorp/tfc-agent:latest"
description = "Name and tag of Terraform Cloud Agent docker image"
}
variable "agent_cli_args" {
type = list(any)
default = []
description = "Extra command line arguments to pass to tfc-agent"
}
variable "agent_envs" {
type = map(any)
default = {}
description = "A map of any extra environment variables to pass to the TFC agent"
}
variable "tfc_agent_token" {
type = string
default = ""
description = <<-EOF
The agent token to use when making requests to the Terraform Cloud API.
This token must be obtained from the API or UI. It is recommended to use
the environment variable whenever possible for configuring this setting due
to the sensitive nature of API tokens.
EOF
}
variable "tfc_agent_log_level" {
type = string
default = "info"
description = <<-EOF
The log verbosity expressed as a level string. Level options include
"trace", "debug", "info", "warn", and "error"
EOF
}
variable "tfc_agent_data_dir" {
type = string
default = null
description = <<-EOF
The path to a directory to store all agent-related data, including
Terraform configurations, cached Terraform release archives, etc. It is
important to ensure that the given directory is backed by plentiful
storage.
EOF
}
variable "tfc_agent_single" {
type = bool
default = false
description = <<-EOF
Enable single mode. This causes the agent to handle at most one job and
immediately exit thereafter. Useful for running agents as ephemeral
containers, VMs, or other isolated contexts with a higher-level scheduler
or process supervisor.
EOF
}
variable "tfc_agent_disable_update" {
type = bool
default = false
description = "Disable automatic core updates."
}
variable "tfc_address" {
type = string
default = "https://app.terraform.io"
description = "The HTTP or HTTPS address of the Terraform Cloud API."
}
variable "resource_limits_cpu" {
type = string
default = "1"
description = "Kubernetes deployment resource hard CPU limit"
}
variable "resource_limits_memory" {
type = string
default = "512Mi"
description = "Kubernetes deployment resource hard memory limit"
}
variable "resource_requests_cpu" {
type = string
default = "250m"
description = "Kubernetes deployment resource CPU requests"
}
variable "resource_requests_memory" {
type = string
default = "50Mi"
description = "Kubernetes deployment resource memory requests"
}