-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
68 lines (61 loc) · 1.81 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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: Apache-2.0
#
# 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)
})
)
}
#
# Your module for can include input variables to be used by CTS operators for
# customizing the module based on their infastructure. CTS supports both
# optional and required variables.
#
variable "address_group_prefix" {
description = "Prefix added to each address group name"
type = string
# Set the default argument to a default value to declare an optional variable.
# Omit the default argument for required ariables.
default = ""
# Set the sensitive flag for input variables that contain secret or sensitive
# values. When set, Terraform will redact the value from output when Terraform
# commands are run.
sensitive = false
}
variable "address_group_tags" {
description = "List of tag names to add to each address group for filtering of Consul service IPs"
type = list(string)
default = []
}