-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
128 lines (106 loc) · 2.54 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# Common variables
variable "region" {
type = string
description = "AWS Region"
default = "eu-west-1"
}
# Elasticsearch variables
variable "create_es" {
type = bool
description = "Should ES cluster be created"
default = "true"
}
variable "es_name" {
type = string
description = "Cluster name for Elasticsearch"
default = "cxcloud"
}
variable "es_ver" {
type = string
description = "Elasticsearch version"
default = 7.9
}
variable "es_instance_type" {
type = string
description = "Instance type for Elasticsearch"
default = "t3.small.elasticsearch"
}
variable "es_instance_count" {
type = string
description = "Amount of Elasticsearch nodes"
default = 1
}
variable "es_dedicated_master_enabled" {
type = string
description = "Use dedicated master"
default = false
}
variable "es_ebs_size" {
type = string
description = "Size of EBS volume per instance"
default = 35
}
variable "es_snapshot_start_hour" {
type = string
description = "Start time of snapshot"
default = 23
}
variable "es_name_tag" {
type = string
description = "name tag"
default = "cxcloud"
}
variable "es_whitelisted_ips" {
type = list(string)
description = "Whitelisted IPs to access ES"
default = []
}
# Kinesis Firehose variables
variable "stream_name" {
type = string
description = "Kinesis Firehose Stream Name"
default = "cxcloud"
}
variable "s3_bucket" {
type = string
description = "S3 bucket for logs"
}
variable "s3_buffer_size" {
type = string
description = "S3 Buffer Size"
default = 10
}
variable "s3_buffer_interval" {
type = string
description = "S3 buffer interval"
default = 60
}
variable "s3_compression_format" {
type = string
description = "S3 log compression format"
default = "GZIP"
}
variable "es_index_name" {
type = string
description = "Elasticsearch index name"
default = "cxcloud"
}
variable "es_buffering_size" {
type = string
description = "Elasticsearch buffering size"
default = 10
}
variable "es_buffering_interval" {
type = string
description = "Elasticsearch buffering interval"
default = 60
}
variable "s3_backup_mode" {
type = string
description = "S3 backup mode"
default = "AllDocuments"
}
variable "whitelisted_aws_account_arns" {
type = list(string)
description = "Whitelisted AWS ARNs to assume role for Kinesis Firehose access"
}