This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 485
/
variables.tf
80 lines (67 loc) · 2.78 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# You must provide a value for each of these parameters.
# ---------------------------------------------------------------------------------------------------------------------
variable "security_group_id" {
description = "The ID of the security group to which we should add the Consul security group rules"
type = string
}
variable "allowed_inbound_cidr_blocks" {
description = "A list of CIDR-formatted IP address ranges from which the EC2 Instances will allow connections to Consul"
type = list(string)
default = []
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "allowed_inbound_security_group_ids" {
description = "A list of security group IDs that will be allowed to connect to Consul"
type = list(string)
default = []
}
variable "allowed_inbound_security_group_count" {
description = "The number of entries in var.allowed_inbound_security_group_ids. Ideally, this value could be computed dynamically, but we pass this variable to a Terraform resource's 'count' property and Terraform requires that 'count' be computed with literals or data sources only."
type = number
default = 0
}
variable "server_rpc_port" {
description = "The port used by servers to handle incoming requests from other agents."
type = number
default = 8300
}
variable "cli_rpc_port" {
description = "The port used by all agents to handle RPC from the CLI."
type = number
default = 8400
}
variable "serf_lan_port" {
description = "The port used to handle gossip in the LAN. Required by all agents."
type = number
default = 8301
}
variable "serf_wan_port" {
description = "The port used by servers to gossip over the WAN to other servers."
type = number
default = 8302
}
variable "http_api_port" {
description = "The port used by clients to talk to the HTTP API"
type = number
default = 8500
}
variable "https_api_port" {
description = "The port used by clients to talk to the HTTPS API. Only used if enable_https_port is set to true."
type = number
default = 8501
}
variable "dns_port" {
description = "The port used to resolve DNS queries."
type = number
default = 8600
}
variable "enable_https_port" {
description = "If set to true, allow access to the Consul HTTPS port defined via the https_api_port variable."
type = bool
default = false
}