From 30941dfdc4e6d04d8e999f700286fbd24955f5f2 Mon Sep 17 00:00:00 2001 From: Suguru Namura Date: Tue, 10 Mar 2015 19:45:56 +0900 Subject: [PATCH] providers/aws: iops in root device skipped when output state --- builtin/providers/aws/resource_aws_instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index ee62d305e..d0c6a3bb7 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -482,6 +482,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error { blockDevice["device_name"] = blockDevices[vol.VolumeId].DeviceName blockDevice["volume_type"] = vol.VolumeType blockDevice["volume_size"] = volSize + blockDevice["iops"] = vol.IOPS blockDevice["delete_on_termination"] = blockDevices[vol.VolumeId].DeleteOnTermination @@ -494,7 +495,6 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error { blockDevice["snapshot_id"] = vol.SnapshotId blockDevice["encrypted"] = vol.Encrypted - blockDevice["iops"] = vol.IOPS nonRootBlockDevices = append(nonRootBlockDevices, blockDevice) } d.Set("block_device", nonRootBlockDevices)