From c63b663d2de70aac8323df5a490982f18602514c Mon Sep 17 00:00:00 2001 From: dario-simonetti Date: Tue, 25 Oct 2016 23:59:54 +0100 Subject: [PATCH] provider/aws: fix aws_elasticache_replication_group for Redis in cluster mode (#9601) This is a fix for issue https://github.com/hashicorp/terraform/issues/9596. Changes: - Adds new output attribute `configuration_endpoint_address`. Only used in Redis when in cluster mode. - Read the `snapshot_window` and `snapshot_retention_limit` from the replication group description instead of the cache cluster description. - Adds acceptance test and modifies an existing acceptance test to make sure that everything is still good in non-cluster mode - Updates docs to describe new output attribute --- r/elasticache_replication_group.html.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/r/elasticache_replication_group.html.markdown b/r/elasticache_replication_group.html.markdown index 2de0e309951..8cfa96af5f7 100644 --- a/r/elasticache_replication_group.html.markdown +++ b/r/elasticache_replication_group.html.markdown @@ -67,8 +67,9 @@ Please note that setting a `snapshot_retention_limit` is not supported on cache. The following attributes are exported: -* `id` - The ID of the ElastiCache Replication Group -* `primary_endpoint_address` - The address of the endpoint for the primary node in the replication group +* `id` - The ID of the ElastiCache Replication Group. +* `primary_endpoint_address` - The address of the endpoint for the primary node in the replication group. If Redis, only present when cluster mode is disabled. +* `configuration_endpoint_address` - (Redis only) The address of the replication group configuration endpoint when cluster mode is enabled. ## Import @@ -76,4 +77,4 @@ ElastiCache Replication Groups can be imported using the `replication_group_id`, ``` $ terraform import aws_elasticache_replication_group.my_replication_group replication-group-1 -``` \ No newline at end of file +```