Commit 27137c34 authored by Ross Smith II's avatar Ross Smith II

Merge pull request #1194 from gregburek/encrypted-ebs

Adds support for encrypted EBS volumes
parents 1b659d27 3a457127
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
type BlockDevice struct { type BlockDevice struct {
DeleteOnTermination bool `mapstructure:"delete_on_termination"` DeleteOnTermination bool `mapstructure:"delete_on_termination"`
DeviceName string `mapstructure:"device_name"` DeviceName string `mapstructure:"device_name"`
Encrypted bool `mapstructure:"encrypted"`
IOPS int64 `mapstructure:"iops"` IOPS int64 `mapstructure:"iops"`
NoDevice bool `mapstructure:"no_device"` NoDevice bool `mapstructure:"no_device"`
SnapshotId string `mapstructure:"snapshot_id"` SnapshotId string `mapstructure:"snapshot_id"`
...@@ -34,6 +35,7 @@ func buildBlockDevices(b []BlockDevice) []ec2.BlockDeviceMapping { ...@@ -34,6 +35,7 @@ func buildBlockDevices(b []BlockDevice) []ec2.BlockDeviceMapping {
DeleteOnTermination: blockDevice.DeleteOnTermination, DeleteOnTermination: blockDevice.DeleteOnTermination,
IOPS: blockDevice.IOPS, IOPS: blockDevice.IOPS,
NoDevice: blockDevice.NoDevice, NoDevice: blockDevice.NoDevice,
Encrypted: blockDevice.Encrypted,
}) })
} }
return blockDevices return blockDevices
......
...@@ -62,7 +62,8 @@ each category, the available configuration keys are alphabetized. ...@@ -62,7 +62,8 @@ each category, the available configuration keys are alphabetized.
device mappings to the AMI. The block device mappings allow for keys: device mappings to the AMI. The block device mappings allow for keys:
"device\_name" (string), "virtual\_name" (string), "snapshot\_id" (string), "device\_name" (string), "virtual\_name" (string), "snapshot\_id" (string),
"volume\_type" (string), "volume\_size" (integer), "delete\_on\_termination" "volume\_type" (string), "volume\_size" (integer), "delete\_on\_termination"
(boolean), "no\_device" (boolean), and "iops" (integer). (boolean), "encrypted" (boolean), "no\_device" (boolean), and "iops"
(integer).
* `ami_description` (string) - The description to set for the resulting * `ami_description` (string) - The description to set for the resulting
AMI(s). By default this description is empty. AMI(s). By default this description is empty.
......
...@@ -84,7 +84,7 @@ each category, the available configuration keys are alphabetized. ...@@ -84,7 +84,7 @@ each category, the available configuration keys are alphabetized.
device mappings to the AMI. The block device mappings allow for keys: device mappings to the AMI. The block device mappings allow for keys:
"device\_name" (string), "virtual\_name" (string), "snapshot\_id" (string), "device\_name" (string), "virtual\_name" (string), "snapshot\_id" (string),
"volume\_type" (string), "volume\_size" (integer), "delete\_on\_termination" "volume\_type" (string), "volume\_size" (integer), "delete\_on\_termination"
(boolean), "no\_device" (boolean), and "iops" (integer). (boolean), "encrypted" (boolean), "no\_device" (boolean), and "iops" (integer).
See [amazon-ebs](/docs/builders/amazon-ebs.html) for an example template. See [amazon-ebs](/docs/builders/amazon-ebs.html) for an example template.
* `ami_description` (string) - The description to set for the resulting * `ami_description` (string) - The description to set for the resulting
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment