Skip to content

Commit

Permalink
Add encrypted EBS volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
spangenberg committed Feb 12, 2019
1 parent 15fe4b4 commit c7e5ec1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/actuators/machine/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,13 @@ func getBlockDeviceMappings(blockDeviceMappings []providerconfigv1.BlockDeviceMa
deviceName := describeAMIResult.Images[0].RootDeviceName

// Only support one blockDeviceMapping
encrypted := blockDeviceMappings[0].EBS.Encrypted
volumeSize := blockDeviceMappings[0].EBS.VolumeSize
volumeType := blockDeviceMappings[0].EBS.VolumeType
blockDeviceMapping := ec2.BlockDeviceMapping{
DeviceName: deviceName,
Ebs: &ec2.EbsBlockDevice{
Encrypted: encrypted,
VolumeSize: volumeSize,
VolumeType: volumeType,
},
Expand Down

0 comments on commit c7e5ec1

Please sign in to comment.