Merge branch 'aws_elasticache_cluster_address' of https://github.com/A-Gordon/terraform into A-Gordon-aws_elasticache_cluster_address
This commit is contained in:
commit
10cddc8153
|
@ -170,6 +170,11 @@ func resourceAwsElasticacheCluster() *schema.Resource {
|
|||
Computed: true,
|
||||
}
|
||||
|
||||
resourceSchema["cluster_address"] = &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
}
|
||||
|
||||
resourceSchema["replication_group_id"] = &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
|
@ -348,6 +353,7 @@ func resourceAwsElasticacheClusterRead(d *schema.ResourceData, meta interface{})
|
|||
if c.ConfigurationEndpoint != nil {
|
||||
d.Set("port", c.ConfigurationEndpoint.Port)
|
||||
d.Set("configuration_endpoint", aws.String(fmt.Sprintf("%s:%d", *c.ConfigurationEndpoint.Address, *c.ConfigurationEndpoint.Port)))
|
||||
d.Set("cluster_address", aws.String(fmt.Sprintf("%s", *c.ConfigurationEndpoint.Address)))
|
||||
}
|
||||
|
||||
if c.ReplicationGroupId != nil {
|
||||
|
|
|
@ -2572,6 +2572,9 @@ type CacheCluster struct {
|
|||
// node.
|
||||
ConfigurationEndpoint *Endpoint `type:"structure"`
|
||||
|
||||
// The DNS name of the cache cluster without the port appended.
|
||||
ClusterAddress *string `type:"string"`
|
||||
|
||||
// The name of the cache engine (memcached or redis) to be used for this cache
|
||||
// cluster.
|
||||
Engine *string `type:"string"`
|
||||
|
|
Loading…
Reference in New Issue