|
|
|
|
@ -29,6 +29,10 @@ func resourceAwsElasticacheCluster() *schema.Resource {
|
|
|
|
|
Required: true,
|
|
|
|
|
ForceNew: true,
|
|
|
|
|
},
|
|
|
|
|
"configuration_endpoint": &schema.Schema{
|
|
|
|
|
Type: schema.TypeString,
|
|
|
|
|
Computed: true,
|
|
|
|
|
},
|
|
|
|
|
"engine": &schema.Schema{
|
|
|
|
|
Type: schema.TypeString,
|
|
|
|
|
Required: true,
|
|
|
|
|
@ -105,10 +109,6 @@ func resourceAwsElasticacheCluster() *schema.Resource {
|
|
|
|
|
Type: schema.TypeInt,
|
|
|
|
|
Computed: true,
|
|
|
|
|
},
|
|
|
|
|
"configuration_endpoint": &schema.Schema{
|
|
|
|
|
Type: schema.TypeString,
|
|
|
|
|
Computed: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
@ -236,6 +236,7 @@ func resourceAwsElasticacheClusterRead(d *schema.ResourceData, meta interface{})
|
|
|
|
|
d.Set("engine_version", c.EngineVersion)
|
|
|
|
|
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("subnet_group_name", c.CacheSubnetGroupName)
|
|
|
|
|
@ -358,7 +359,6 @@ func setCacheNodeData(d *schema.ResourceData, c *elasticache.CacheCluster) error
|
|
|
|
|
"id": *node.CacheNodeId,
|
|
|
|
|
"address": *node.Endpoint.Address,
|
|
|
|
|
"port": int(*node.Endpoint.Port),
|
|
|
|
|
"configuration_endpoint": fmt.Sprintf("%s:%d", *node.Endpoint.Address, *node.Endpoint.Port),
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|