diff --git a/builder/amazon/common/block_device.go b/builder/amazon/common/block_device.go index fbc13cf8a..b951b1867 100644 --- a/builder/amazon/common/block_device.go +++ b/builder/amazon/common/block_device.go @@ -11,18 +11,15 @@ import ( "github.com/hashicorp/packer/template/interpolate" ) -// These will be attached when booting a new instance from your AMI. -// Your options here may vary depending on the type of VM you use. Example: +// These will be attached when booting a new instance from your AMI. Your +// options here may vary depending on the type of VM you use. Example value: // // ``` json -// "builders":[{ -// "type":"...", -// "ami_block_device_mappings":[{ -// "device_name":"xvda", -// "delete_on_termination":true, -// "volume_type":"gp2" -// }] -// } +// [{ +// "device_name":"xvda", +// "delete_on_termination":true, +// "volume_type":"gp2" +// }] // ``` // Documentation for Block Devices Mappings can be found here: // https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html diff --git a/website/source/partials/builder/amazon/common/_BlockDevice.html.md b/website/source/partials/builder/amazon/common/_BlockDevice.html.md index 3e2ab3b58..37eb0577e 100644 --- a/website/source/partials/builder/amazon/common/_BlockDevice.html.md +++ b/website/source/partials/builder/amazon/common/_BlockDevice.html.md @@ -1,16 +1,13 @@ -These will be attached when booting a new instance from your AMI. -Your options here may vary depending on the type of VM you use. Example: +These will be attached when booting a new instance from your AMI. Your +options here may vary depending on the type of VM you use. Example value: ``` json -"builders":[{ -"type":"...", -"ami_block_device_mappings":[{ - "device_name":"xvda", - "delete_on_termination":true, - "volume_type":"gp2" - }] - } +[{ + "device_name":"xvda", + "delete_on_termination":true, + "volume_type":"gp2" +}] ``` Documentation for Block Devices Mappings can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html