Skip to content

Commit

Permalink
provider/aws: fix aws_elasticache_replication_group for Redis in clus…
Browse files Browse the repository at this point in the history
…ter mode (#9601)

This is a fix for issue hashicorp/terraform#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
  • Loading branch information
dario-simonetti authored and stack72 committed Oct 25, 2016
1 parent 3eb7b66 commit c63b663
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions r/elasticache_replication_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ 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

ElastiCache Replication Groups can be imported using the `replication_group_id`, e.g.

```
$ terraform import aws_elasticache_replication_group.my_replication_group replication-group-1
```
```

0 comments on commit c63b663

Please sign in to comment.