-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
182 lines (153 loc) · 4.89 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
variable "name" {
description = "The name of the Amazon MQ cluster. It provides a unique identifier for the cluster."
type = string
default = ""
}
variable "environment" {
description = "The name of the environment where the Amazon MQ cluster is deployed."
type = string
default = ""
}
variable "vpc_id" {
description = "The ID of the VPC where the Amazon MQ cluster will be created."
type = string
default = ""
}
variable "allowed_cidr_blocks" {
description = "A list of CIDR blocks that are allowed to access the Amazon MQ cluster."
default = []
type = list(any)
}
variable "allowed_security_groups" {
description = "A list of Security Group IDs that are allowed to access the Amazon MQ cluster."
default = []
type = list(any)
}
variable "port" {
description = "The port number on which the RabbitMQ cluster will be accessible."
default = 5671
type = number
}
variable "subnet_ids" {
type = list(string)
default = []
description = "The IDs of the subnets in which the Amazon MQ broker will be launched. "
}
variable "host_instance_type" {
type = string
default = ""
description = "The instance type of the Amazon MQ broker. For example, 'mq.t3.micro' or 'mq.m5.large'."
}
variable "engine_type" {
type = string
description = "The type of broker engine used in the Amazon MQ cluster."
default = "RabbitMQ"
}
variable "engine_version" {
type = string
default = ""
description = "The version of the broker engine used in the Amazon MQ cluster."
}
variable "storage_type" {
type = string
description = "(optional) Storage type of the broker, only ebs work with mq.m5.large"
default = null
}
variable "authentication_strategy" {
type = string
description = "The authentication strategy used to secure the broker."
default = "simple"
}
variable "deployment_mode" {
type = string
description = "The deployment mode of the Amazon MQ cluster."
default = "SINGLE_INSTANCE"
}
variable "apply_immediately" {
type = bool
description = "Specifies whether any broker modifications are applied immediately or during the next maintenance window."
default = true
}
variable "auto_minor_version_upgrade" {
type = bool
description = "Whether to automatically upgrade to new minor versions of brokers as Amazon MQ makes releases available."
default = false
}
variable "publicly_accessible" {
type = bool
description = "Whether to enable connections from applications outside of the VPC that hosts the broker's subnets"
default = false
}
variable "username" {
type = string
default = ""
description = "The username of the user for authentication."
}
variable "maintenance_window_start_time" {
type = object({
day_of_week = string
time_of_day = string
time_zone = string
})
description = "The configuration block for the maintenance window start time."
default = {
day_of_week = "MONDAY"
time_of_day = "22:45"
time_zone = "Europe/Berlin"
}
}
variable "recovery_window_aws_secret" {
default = 0
type = number
description = "Number of days that AWS Secrets Manager waits before it can delete the secret. This value can be 0 to force deletion without recovery or range from 7 to 30 days."
}
variable "alarm_memory_used_threshold" {
type = string
default = "1000000000" // 1 GB
description = "Alarm threshold for the 'lowFreeStorageSpace' alarm"
}
variable "cloudwatch_metric_alarms_enabled" {
type = bool
description = "Boolean flag to enable/disable CloudWatch metrics alarms"
default = false
}
variable "alarm_cpu_threshold_percent" {
type = number
default = 75
description = "CPU threshold alarm level"
}
variable "alarm_actions" {
type = list(string)
description = "Alarm action list"
default = []
}
variable "ok_actions" {
type = list(string)
description = "The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Number (ARN)"
default = []
}
variable "slack_notification_enabled" {
type = bool
description = "Whether to enable/disable slack notification."
default = false
}
variable "slack_webhook_url" {
description = "The Slack Webhook URL where notifications will be sent."
default = ""
type = string
}
variable "slack_channel" {
description = "The Slack channel where notifications will be posted."
default = ""
type = string
}
variable "slack_username" {
description = "The username to use when sending notifications to Slack."
default = ""
type = string
}
variable "cw_sns_topic_arn" {
description = "The username to use when sending notifications to Slack."
default = ""
type = string
}