Fix for #1312, use describe to determine if AWS EBS snapshot is encrypted and explicitly pass that value in EC2 CreateVolume call. (#1316)

Signed-off-by: Matt Stump <mstump@vorstella.com>
pull/1300/head
Matt Stump 2019-03-26 17:30:27 -07:00 committed by KubeKween
parent b1c0e9c49b
commit f8baf4f4f0
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
Fix for #1312, use describe to determine if AWS EBS snapshot is encrypted and explicitly pass that value in EC2 CreateVolume call.

View File

@ -102,6 +102,7 @@ func (b *BlockStore) CreateVolumeFromSnapshot(snapshotID, volumeType, volumeAZ s
SnapshotId: &snapshotID,
AvailabilityZone: &volumeAZ,
VolumeType: &volumeType,
Encrypted: snapRes.Snapshots[0].Encrypted,
TagSpecifications: []*ec2.TagSpecification{
{
ResourceType: aws.String(ec2.ResourceTypeVolume),