forked from ulamlabs/terraform-aws-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
211 lines (175 loc) · 4.97 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
variable "vpc_id" {
}
variable "ssh_key_name" {
type = string
description = "The ssh key to provide the instance to use for ssh login"
}
variable "name" {
type = string
description = "The name of the RabbitMQ cluster"
default = "main"
}
variable "ami_id" {
type = string
description = "The AMI ID to use for the ec2 instance. Empty string uses a pre-configured latest."
default = ""
}
variable "min_size" {
type = number
description = "Minimum number of RabbitMQ nodes"
default = 2
}
variable "desired_size" {
type = number
description = "Desired number of RabbitMQ nodes"
default = 2
}
variable "max_size" {
type = number
description = "Maximum number of RabbitMQ nodes"
default = 2
}
variable "subnet_ids" {
type = list(string)
description = "Subnets for RabbitMQ nodes"
}
variable "nodes_additional_security_group_ids" {
type = list(string)
description = "List of additional node security group ids"
default = []
}
variable "elb_additional_security_group_ids" {
type = list(string)
description = "List of additional ELB security group ids"
default = []
}
variable "instance_type" {
type = string
description = "The EC2 instance type to use"
default = "m5.large"
}
variable "instance_volume_type" {
type = string
description = "The instance volume type to use (standard, gp2, gp3, st1, sc1, io1)"
default = "standard"
}
variable "instance_volume_size" {
type = number
description = "The size of the instance volume in gigabytes"
default = 0
}
variable "instance_volume_iops" {
type = number
description = "The amount of provisioned iops"
default = 0
}
variable "rabbitmq_image" {
type = string
description = "The RabbitMQ docker image"
}
variable "ecr_registry_id" {
type = string
description = "The ECR registry ID"
}
variable "access_log_bucket" {
type = string
description = "optional bucket name to use for access logs"
default = "bucketname"
}
variable "access_log_bucket_prefix" {
type = string
description = "optional prefix to use for access logs"
default = ""
}
variable "access_log_interval" {
type = number
description = "How often for the ELB to publish access logs in minutes"
default = 60
}
variable "access_logs_enabled" {
type = bool
description = "Whether or not to enable access logging on the ELB"
default = false
}
variable "tags" {
type = map(string)
description = "Optional additional Tags to add onto resources this module creates"
default = {}
}
variable "encrypted_ebs_instance_volume" {
type = bool
description = "Whether to encrypt the instance ebs volume"
default = true
}
variable "dd_env" {
type = string
description = "The environment the app is running in"
}
variable "dd_site" {
type = string
description = "The Datadog site url"
}
variable "kms_key_arn" {
type = string
description = "The KMS key arn to use for encrypting and decrypting SSM parameters"
}
variable "health_check_grace_period" {
type = number
description = "The ASG health check grace period"
default = 400
}
variable "health_check_interval" {
type = number
description = "The ELB health check interval in seconds"
default = 30
}
variable "unhealthy_threshold" {
type = number
description = "The ELB health check unhealthy threshold count"
default = 10
}
variable "healthy_threshold" {
type = number
description = "The ELB health check healthy threshold count"
default = 2
}
variable "timeout" {
type = number
description = "The ELB health check length of time before timeout in seconds"
default = 3
}
variable "aws_session_manager_enabled" {
type = bool
description = "Whether or not the ec2 instances in this cluster should allow session manager permissions"
default = false
}
variable "session_manager_kms_encryption_enabled" {
type = bool
description = "Whether to enable session manager kms encryption to protect session data"
default = false
}
variable "session_manager_kms_key_arn" {
type = string
description = "The kms key arn to use for session manager session encryption"
default = ""
}
variable "upgrading_minor_version_number" {
type = number
description = "The value of the minor version you are upgrading to."
default = 0
}
variable "enable_password_rotation" {
type = bool
description = "Whether to configure secondary users to facilitate password rotations."
default = false
}
variable "use_secondary_users" {
type = bool
description = "Whether the instance should use the secondary users."
default = false
}
variable "inspector2_cis_scanning_enabled" {
type = bool
description = "Whether to attach required policies for inspector 2 ec2 CIS scans"
default = true
}