Skip to content

Commit b4914d6

Browse files
committed
Add default values for kibana logging vars, as they could be commented out if another logging solution is chosen.
1 parent 7c5a266 commit b4914d6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

templates/terraform/modules/environment/variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,33 @@ variable "logging_type" {
8383
}
8484
}
8585

86+
# The following have default values specified in case logging_type is not set to "kibana", in which case they are not necessary.
8687
variable "logging_es_version" {
8788
description = "The version of elasticsearch to use"
89+
default = "7.7"
8890
}
8991

9092
variable "logging_az_count" {
9193
description = "The number of availability zones to use for the cluster. More is more higly available but requires more instances, which increases cost"
9294
type = number
95+
default = 1
9396
}
9497

9598
variable "logging_es_instance_type" {
9699
description = "Instance type for nodes"
100+
default = "m3.medium.elasticsearch"
97101
}
98102

99103
variable "logging_es_instance_count" {
100-
description = "Number of nodes in the cluster. Must be a multiple of the number of"
104+
description = "Number of nodes in the cluster. Must be a multiple of the number of availability zones"
101105
type = number
106+
default = 1
102107
}
103108

104109
variable "logging_volume_size_in_gb" {
105110
description = "Size of EBS volume (in GB) to attach to *each* of the nodes in the cluster. The maximum size is limited by the size of the instance"
106111
type = number
112+
default = 10
107113
}
108114

109115
variable "enable_cluster_logging" {

0 commit comments

Comments
 (0)