diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index ab7e02e35..15d05dc33 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -376,7 +376,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error { return err } - bds := make([]map[string]interface{}, len(instance.BlockDevices)) + bds := make([]map[string]interface{}, len(volResp.Volumes)) for i, vol := range volResp.Volumes { bds[i] = make(map[string]interface{}) bds[i]["device_name"] = bdByVolID[vol.VolumeId].DeviceName