generated from hashicorp/consul-terraform-sync-template-module
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvariables.tf
46 lines (43 loc) · 1.05 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
#
# var.services is a required input variable for Consul Terraform Sync
#
# An example of the services input value:
# services = {
# "app-id-01.worker-01.dc1" : {
# id = "app-id-01"
# name = "app"
# ...
# },
# "web.worker-01.dc1" : {
# ...
# }
# }
#
variable "services" {
description = "Consul services monitored by Consul-Terraform-Sync"
type = map(
object({
id = string
name = string
kind = string
address = string
port = number
meta = map(string)
tags = list(string)
namespace = string
status = string
node = string
node_id = string
node_address = string
node_datacenter = string
node_tagged_addresses = map(string)
node_meta = map(string)
cts_user_defined_meta = map(string)
})
)
}
variable "include_meta" {
description = "Include service metadata in the generated files"
type = bool
default = false
}