generated from dfds/aws-modules-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cluster-variables.tf
200 lines (163 loc) · 7.44 KB
/
cluster-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
# This file is temporary. As supporting the cluster option for RDS instances is not part of the initial scope, this file contains the variables that could be used in the future.
# Still the main variable.tf file contains a few variables in regards to cluster, kept as they are needed for the module to function properly.
# Additionally, to prevent any accidental variable usage all of them are commented out.
# variable "cluster_is_primary_cluster" { # TODO: Remove if not needed
# description = "Determines whether cluster is primary cluster with writer instance (set to `false` for global cluster and replica clusters)"
# type = bool
# default = true
# }
# variable "cluster_availability_zones" {
# description = "List of EC2 Availability Zones for the DB cluster storage where DB cluster instances can be created. RDS automatically assigns 3 AZs if less than 3 AZs are configured, which will show as a difference requiring resource recreation next Terraform apply"
# type = list(string)
# default = null
# }
# variable "cluster_backtrack_window" {
# description = "The target backtrack window, in seconds. Only available for `aurora` engine currently. To disable backtracking, set this value to 0. Must be between 0 and 259200 (72 hours)"
# type = number
# default = null
# }
# variable "cluster_members" {
# description = "List of RDS Instances that are a part of this cluster"
# type = list(string)
# default = null
# }
# variable "cluster_enable_global_write_forwarding" {
# description = "Whether cluster should forward writes to an associated global cluster. Applied to secondary clusters to enable them to forward writes to an `aws_rds_global_cluster`'s primary cluster"
# type = bool
# default = null
# }
# variable "cluster_enable_http_endpoint" {
# description = "Enable HTTP endpoint (data API). Only valid when engine_mode is set to `serverless`"
# type = bool
# default = null
# }
# # variable "cluster_engine_mode" {
# # description = "The database engine mode. Valid values: `global`, `multimaster`, `parallelquery`, `provisioned`, `serverless`. Defaults to: `provisioned`"
# # type = string
# # default = "provisioned"
# # }
# variable "cluster_global_cluster_identifier" {
# description = "The global cluster identifier specified on `aws_rds_global_cluster`"
# type = string
# default = null
# }
# variable "cluster_replication_source_identifier" {
# description = "ARN of a source DB cluster or DB instance if this DB cluster is to be created as a Read Replica"
# type = string
# default = null
# }
# variable "cluster_scaling_configuration" { # TODO: Prefix with serverless
# description = "Map of nested attributes with scaling properties. Only valid when `engine_mode` is set to `serverless`"
# type = map(string)
# default = {}
# }
# variable "cluster_serverlessv2_scaling_configuration" { # TODO: Prefix with serverless
# description = "Map of nested attributes with serverless v2 scaling properties. Only valid when `engine_mode` is set to `provisioned`"
# type = map(string)
# default = {}
# }
# variable "cluster_source_region" {
# description = "The source region for an encrypted replica DB cluster"
# type = string
# default = null
# }
# variable "cluster_timeouts" {
# description = "Create, update, and delete timeout configurations for the cluster"
# type = map(string)
# default = {}
# }
# variable "cluster_instances" {
# description = "Map of cluster instances and any specific/overriding attributes to be created"
# type = any
# default = {}
# }
# variable "cluster_db_instance_count" {
# type = number
# default = 0
# }
# variable "cluster_instances_use_identifier_prefix" { # TODO: Remove if not needed
# description = "Determines whether cluster instance identifiers are used as prefixes"
# type = bool
# default = false
# }
# variable "cluster_endpoints" {
# description = "Map of additional cluster endpoints and their attributes to be created"
# type = any
# default = {}
# }
# variable "cluster_iam_roles" { # ? custom_iam_instance_profile ??
# description = "Map of IAM roles and supported feature names to associate with the cluster"
# type = map(map(string))
# default = {}
# }
################################################################################
# Cluster Autoscaling
################################################################################
# variable "cluster_autoscaling_enabled" {
# description = "Determines whether autoscaling of the cluster read replicas is enabled"
# type = bool
# default = false
# }
# variable "cluster_autoscaling_max_capacity" {
# description = "Maximum number of read replicas permitted when autoscaling is enabled"
# type = number
# default = 2
# }
# variable "cluster_autoscaling_min_capacity" {
# description = "Minimum number of read replicas permitted when autoscaling is enabled"
# type = number
# default = 0
# }
# variable "cluster_autoscaling_policy_name" {
# description = "Autoscaling policy name"
# type = string
# default = "target-metric"
# }
# variable "cluster_predefined_metric_type" {
# description = "The metric type to scale on. Valid values are `RDSReaderAverageCPUUtilization` and `RDSReaderAverageDatabaseConnections`"
# type = string
# default = "RDSReaderAverageCPUUtilization"
# }
# variable "cluster_autoscaling_scale_in_cooldown" {
# description = "Cooldown in seconds before allowing further scaling operations after a scale in"
# type = number
# default = 300
# }
# variable "cluster_autoscaling_scale_out_cooldown" {
# description = "Cooldown in seconds before allowing further scaling operations after a scale out"
# type = number
# default = 300
# }
# variable "cluster_autoscaling_target_cpu" {
# description = "CPU threshold which will initiate autoscaling"
# type = number
# default = 70
# }
# variable "cluster_autoscaling_target_connections" {
# description = "Average number of connections threshold which will initiate autoscaling. Default value is 70% of db.r4/r5/r6g.large's default max_connections"
# type = number
# default = 700
# }
# ################################################################################
# # Cluster Activity Stream
# ################################################################################
# variable "create_db_cluster_activity_stream" {
# description = "Determines whether a cluster activity stream is created."
# type = bool
# default = false
# }
# variable "cluster_activity_stream_mode" {
# description = "Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. One of: sync, async"
# type = string
# default = null
# }
# variable "cluster_activity_stream_kms_key_id" {
# description = "The AWS KMS key identifier for encrypting messages in the database activity stream"
# type = string
# default = null
# }
# variable "cluster_engine_native_audit_fields_included" {
# description = "Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included"
# type = bool
# default = false
# }