55a4ce2838
Added support for provisioning a native redis cluster elasticache replication group. A new TypeSet attribute `cluster_mode` has been added. It requires the following fields: - `replicas_per_node_group` - The number of replica nodes in each node group - `num_node_groups` - The number of node groups for this Redis replication group Notes: - `automatic_failover_enabled` must be set to true. - `number_cache_clusters` is now a optional and computed field. If `cluster_mode` is set its value will be computed as: ```num_node_groups + num_node_groups * replicas_per_node_group``` Below is a sample config: resource "aws_elasticache_replication_group" "bar" { replication_group_id = "tf-redis-cluser" replication_group_description = "test description" node_type = "cache.t2.micro" port = 6379 parameter_group_name = "default.redis3.2.cluster.on" automatic_failover_enabled = true cluster_mode { replicas_per_node_group = 1 num_node_groups = 2 } } |
||
---|---|---|
.. | ||
bins | ||
providers | ||
provisioners |