File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ resource "aws_elasticache_replication_group" "default" {
64
64
# https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html
65
65
automatic_failover_enabled = var. automatic_failover_enabled
66
66
67
+ # (Optional) Specifies whether to enable Multi-AZ Support for the replication group.
68
+ # If true, automatic_failover_enabled must also be enabled. Defaults to false
69
+ multi_az_enabled = var. multi_az_enabled
70
+
67
71
# Redis at-rest encryption is an optional feature to increase data security by encrypting on-disk data during sync
68
72
# and backup or snapshot operations. Because there is some processing needed to encrypt and decrypt the data,
69
73
# enabling at-rest encryption can have some performance impact during these operations.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ output "elasticache_replication_group_primary_endpoint_address" {
9
9
}
10
10
11
11
output "elasticache_replication_group_member_clusters" {
12
- value = join ( " " , aws_elasticache_replication_group. default . member_clusters )
12
+ value = aws_elasticache_replication_group. default . member_clusters
13
13
description = " The identifiers of all the nodes that are part of this replication group."
14
14
}
15
15
@@ -49,11 +49,11 @@ output "security_group_description" {
49
49
}
50
50
51
51
output "security_group_ingress" {
52
- value = join ( " " , aws_security_group. default . ingress )
52
+ value = aws_security_group. default . ingress
53
53
description = " The ingress rules of the Redis ElastiCache security group."
54
54
}
55
55
56
56
output "security_group_egress" {
57
- value = join ( " " , aws_security_group. default . egress )
57
+ value = aws_security_group. default . egress
58
58
description = " The egress rules of the Redis ElastiCache security group."
59
59
}
Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ variable "automatic_failover_enabled" {
64
64
description = " Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails."
65
65
}
66
66
67
+ variable "multi_az_enabled" {
68
+ default = false
69
+ type = bool
70
+ description = " Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled."
71
+ }
72
+
67
73
variable "at_rest_encryption_enabled" {
68
74
default = true
69
75
type = bool
You can’t perform that action at this time.
0 commit comments