forked from hashicorp/terraform-google-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
51 lines (41 loc) · 2.36 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These parameters must be supplied when consuming this module.
# ---------------------------------------------------------------------------------------------------------------------
variable "gcp_project" {
description = "The name of the GCP Project where all resources will be launched."
}
variable "gcp_region" {
description = "The region in which all GCP resources will be launched."
}
variable "consul_server_cluster_name" {
description = "The name of the Consul Server cluster. All resources will be namespaced by this value. E.g. consul-server-prod"
}
variable "consul_server_cluster_tag_name" {
description = "The tag the consul server Compute Instances will look for to automatically discover each other and form a cluster. TIP: If running more than one Consul Server cluster, each cluster should have its own unique tag name. If you're not sure what to put for this value, just use the value entered in var.cluster_name."
}
variable "consul_server_source_image" {
description = "The Google Image used to launch each node in the Consul Server cluster."
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "consul_server_cluster_size" {
description = "The number of nodes to have in the Consul Server cluster. We strongly recommended that you use either 3 or 5."
default = 3
}
variable "encrypt_key" {
description = "Specifies the secret key to use for encryption of Consul network traffic. This key must be 16-bytes that are Base64-encoded"
default = "__EMPTY__"
}
variable "consul_server_allowed_inbound_cidr_blocks_http_api" {
description = "A list of CIDR-formatted IP address ranges from which the Compute Instances will allow API connections to Consul."
type = "list"
default = ["0.0.0.0/0"]
}
variable "consul_server_allowed_inbound_cidr_blocks_dns" {
description = "A list of CIDR-formatted IP address ranges from which the Compute Instances will allow TCP DNS and UDP DNS connections to Consul."
type = "list"
default = []
}