From 24a4e2f23ec25260037e3868f240cee617b77212 Mon Sep 17 00:00:00 2001 From: Jason McIntosh Date: Thu, 30 May 2019 17:18:33 -0500 Subject: [PATCH] Updated comments --- builder/amazon/common/ami_config.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/builder/amazon/common/ami_config.go b/builder/amazon/common/ami_config.go index b8062fdca..8535c2330 100644 --- a/builder/amazon/common/ami_config.go +++ b/builder/amazon/common/ami_config.go @@ -59,10 +59,7 @@ func (c *AMIConfig) Prepare(accessConfig *AccessConfig, ctx *interpolate.Context errs = append(errs, c.prepareRegions(accessConfig)...) - //if len(c.AMIUsers) > 0 && c.AMIEncryptBootVolume != nil && *c.AMIEncryptBootVolume { - //errs = append(errs, fmt.Errorf("Cannot share AMI with encrypted boot volume")) - //} - + // Prevent sharing of default KMS key encrypted volumes with other aws users if len(c.AMIUsers) > 0 { if len(c.AMIKmsKeyId) == 0 && c.AMIEncryptBootVolume != nil && *c.AMIEncryptBootVolume { errs = append(errs, fmt.Errorf("Cannot share AMI encrypted with default KMS key"))