Skip to content

Commit

Permalink
add ReaderEndpoint attributes to elasticache_replication_group
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Commarieu committed Jan 8, 2020
1 parent 212df20 commit 6c6a8ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws/resource_aws_elasticache_replication_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ func resourceAwsElasticacheReplicationGroup() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"reader_endpoint_address": {
Type: schema.TypeString,
Computed: true,
},
"replication_group_description": {
Type: schema.TypeString,
Required: true,
Expand Down Expand Up @@ -489,6 +493,7 @@ func resourceAwsElasticacheReplicationGroupRead(d *schema.ResourceData, meta int
} else {
d.Set("port", rgp.NodeGroups[0].PrimaryEndpoint.Port)
d.Set("primary_endpoint_address", rgp.NodeGroups[0].PrimaryEndpoint.Address)
d.Set("reader_endpoint_address", rgp.NodeGroups[0].ReaderEndpoint.Address)
}

d.Set("auto_minor_version_upgrade", c.AutoMinorVersionUpgrade)
Expand Down
1 change: 1 addition & 0 deletions website/docs/r/elasticache_replication_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ In addition to all arguments above, the following attributes are exported:
* `id` - The ID of the ElastiCache Replication Group.
* `configuration_endpoint_address` - The address of the replication group configuration endpoint when cluster mode is enabled.
* `primary_endpoint_address` - (Redis only) The address of the endpoint for the primary node in the replication group, if the cluster mode is disabled.
* `reader_endpoint_address` - (Redis only) The address of the endpoint for the replica nodes in the replication group, if the cluster mode is disabled.
* `member_clusters` - The identifiers of all the nodes that are part of this replication group.

## Timeouts
Expand Down

0 comments on commit 6c6a8ad

Please sign in to comment.