-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
105 lines (86 loc) · 2.45 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
# Input variable definitions
variable "stream_name" {
type = string
description = "Stream Name"
}
variable "encryption_type" {
type = string
description = "Encryption Key"
default = "KMS"
}
variable "kms_key_id" {
type = string
description = "KMS Key"
}
variable "tags" {
type = map(string)
description = "Map of tags that should be applied to all resources"
}
variable "shard_count" {
type = number
description = "Number of Shards"
}
variable "min_shard_count" {
type = number
description = "Minimum Number of Shards greater than zero"
}
variable "stream_retention_period" {
default = 24
type = number
description = "Stream Retention Period"
}
variable "kinesis_scaling_period_mins" {
default = 5
type = number
description = "Scaling Period in minute"
}
variable "kinesis_cooldown_mins" {
default = 10
type = number
description = "Cooling down Period in minutes"
}
variable "kinesis_scale_up_threshold" {
default = 0.75
type = number
description = "Scale up threshold"
}
variable "kinesis_scale_up_evaluation_period" {
default = 5
type = number
description = "Period after which the data for the alarm will be evaluated to scale up"
}
variable "kinesis_scale_up_datapoints_required" {
default = 5
type = number
description = "Number of datapoints required in the evaluationPeriod to trigger the alarm to scale up"
}
variable "kinesis_scale_down_threshold" {
default = 0.25
type = number
description = "Scale down threshold"
}
variable "kinesis_scale_down_evaluation_period" {
default = 60
type = number
description = "Period after which the data for the alarm will be evaluated to scale down"
}
variable "kinesis_scale_down_datapoints_required" {
default = 57
type = number
description = "Number of datapoints required in the evaluationPeriod to trigger the alarm to scale down"
}
variable "kinesis_scale_down_min_iter_age_mins" {
default = 30
type = number
description = "To compare with streams max iterator age. If the streams max iterator age is above this, then the stream will not scale down"
}
variable "enable_slack_notification" {
type = bool
default = false
description = "Enable Scale Notification"
}
variable "slack_web_hook_url" {
type = string
description = "Slack Web hook URL"
default = ""
}