diff --git a/builder/amazon/common/block_device_test.go b/builder/amazon/common/block_device_test.go index e9fdb6c0f..acdba6fbd 100644 --- a/builder/amazon/common/block_device_test.go +++ b/builder/amazon/common/block_device_test.go @@ -84,6 +84,21 @@ func TestBlockDevice(t *testing.T) { }, }, }, + { + Config: &BlockDevice{ + DeviceName: "/dev/sdb", + VolumeType: "standard", + DeleteOnTermination: true, + }, + + Result: &ec2.BlockDeviceMapping{ + DeviceName: aws.String("/dev/sdb"), + Ebs: &ec2.EbsBlockDevice{ + VolumeType: aws.String("standard"), + DeleteOnTermination: aws.Bool(true), + }, + }, + }, { Config: &BlockDevice{ DeviceName: "/dev/sdb",