Merge pull request #1125 from TimeIncOSS/rds_instance_fix

aws/rds: Let aws_db_instance.*.address to be actually address
This commit is contained in:
Mitchell Hashimoto 2015-03-05 11:22:17 -08:00
commit e92a378df7
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ func resourceAwsDbInstanceRead(d *schema.ResourceData, meta interface{}) error {
d.Set("parameter_group_name", *v.DBParameterGroups[0].DBParameterGroupName)
}
d.Set("address", *v.Endpoint.Port)
d.Set("address", *v.Endpoint.Address)
d.Set("endpoint", fmt.Sprintf("%s:%d", *v.Endpoint.Address, *v.Endpoint.Port))
d.Set("status", *v.DBInstanceStatus)
d.Set("storage_encrypted", *v.StorageEncrypted)