zone_id exported attribute for db_instance resource
This commit is contained in:
parent
064691b03c
commit
62ea843ff3
|
@ -236,6 +236,11 @@ func resourceAwsDbInstance() *schema.Resource {
|
|||
Computed: true,
|
||||
},
|
||||
|
||||
"zone_id": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
},
|
||||
|
||||
"status": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Computed: true,
|
||||
|
@ -669,7 +674,7 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
|
|||
if v.Endpoint != nil {
|
||||
d.Set("port", v.Endpoint.Port)
|
||||
d.Set("address", v.Endpoint.Address)
|
||||
|
||||
d.Set("zone_id", v.Endpoint.HostedZoneId)
|
||||
if v.Endpoint.Address != nil && v.Endpoint.Port != nil {
|
||||
d.Set("endpoint",
|
||||
fmt.Sprintf("%s:%d", *v.Endpoint.Address, *v.Endpoint.Port))
|
||||
|
|
Loading…
Reference in New Issue