diff --git a/builder/amazon/common/block_device.go b/builder/amazon/common/block_device.go index 4e1046823..cca863f24 100644 --- a/builder/amazon/common/block_device.go +++ b/builder/amazon/common/block_device.go @@ -21,8 +21,7 @@ import ( // The following mapping will tell Packer to encrypt the root volume of the // build instance at launch using a specific non-default kms key: // -// -// +// JSON example: // // ```json // ami_block_device_mappings: [ @@ -34,8 +33,7 @@ import ( // ] // ``` // -// -// +// HCL2 example: // // ```hcl // ami_block_device_mappings { @@ -45,10 +43,6 @@ import ( // } // ``` // -// -// -// ``` -// // 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/pages/partials/builder/amazon/common/BlockDevice.mdx b/website/pages/partials/builder/amazon/common/BlockDevice.mdx index 9d70f64c6..2d379812c 100644 --- a/website/pages/partials/builder/amazon/common/BlockDevice.mdx +++ b/website/pages/partials/builder/amazon/common/BlockDevice.mdx @@ -8,8 +8,7 @@ Example use case: The following mapping will tell Packer to encrypt the root volume of the build instance at launch using a specific non-default kms key: - - +JSON example: ```json ami_block_device_mappings: [ @@ -21,8 +20,7 @@ ami_block_device_mappings: [ ] ``` - - +HCL2 example: ```hcl ami_block_device_mappings { @@ -32,9 +30,5 @@ ami_block_device_mappings { } ``` - - -``` - Documentation for Block Devices Mappings can be found here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html