|
|
|
|
@ -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:
|
|
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
|
<Tab heading="JSON">
|
|
|
|
|
JSON example:
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
ami_block_device_mappings: [
|
|
|
|
|
@ -21,8 +20,7 @@ ami_block_device_mappings: [
|
|
|
|
|
]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
<Tab heading="HCL2">
|
|
|
|
|
HCL2 example:
|
|
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
|
ami_block_device_mappings {
|
|
|
|
|
@ -32,9 +30,5 @@ ami_block_device_mappings {
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
|
</Tabs>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Documentation for Block Devices Mappings can be found here:
|
|
|
|
|
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
|
|
|
|
|
|