From b0d007340533fdde5747666482ca520d655fc552 Mon Sep 17 00:00:00 2001 From: Tara Planas Date: Sun, 14 May 2017 16:35:06 -0700 Subject: [PATCH] Add support for ebs encryption --- src/environmentbase/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/environmentbase/template.py b/src/environmentbase/template.py index 8fa6798..5c6472c 100644 --- a/src/environmentbase/template.py +++ b/src/environmentbase/template.py @@ -646,6 +646,7 @@ def add_asg(self, ebs_block_device = ec2.EBSBlockDevice( DeleteOnTermination=ebs_volume.get('delete_on_termination', True), + Encrypted=ebs_volume.get('encrypted', False), VolumeSize=ebs_volume.get('size', '100'), VolumeType=ebs_volume.get('type', 'gp2')) @@ -1337,4 +1338,3 @@ def get_subnet_type(self, subnet_layer): if a_subnet_layer == subnet_layer: return subnet_type return None -