Updated comments
This commit is contained in:
parent
24bc50ce1b
commit
24a4e2f23e
|
@ -59,10 +59,7 @@ func (c *AMIConfig) Prepare(accessConfig *AccessConfig, ctx *interpolate.Context
|
||||||
|
|
||||||
errs = append(errs, c.prepareRegions(accessConfig)...)
|
errs = append(errs, c.prepareRegions(accessConfig)...)
|
||||||
|
|
||||||
//if len(c.AMIUsers) > 0 && c.AMIEncryptBootVolume != nil && *c.AMIEncryptBootVolume {
|
// Prevent sharing of default KMS key encrypted volumes with other aws users
|
||||||
//errs = append(errs, fmt.Errorf("Cannot share AMI with encrypted boot volume"))
|
|
||||||
//}
|
|
||||||
|
|
||||||
if len(c.AMIUsers) > 0 {
|
if len(c.AMIUsers) > 0 {
|
||||||
if len(c.AMIKmsKeyId) == 0 && c.AMIEncryptBootVolume != nil && *c.AMIEncryptBootVolume {
|
if len(c.AMIKmsKeyId) == 0 && c.AMIEncryptBootVolume != nil && *c.AMIEncryptBootVolume {
|
||||||
errs = append(errs, fmt.Errorf("Cannot share AMI encrypted with default KMS key"))
|
errs = append(errs, fmt.Errorf("Cannot share AMI encrypted with default KMS key"))
|
||||||
|
|
Loading…
Reference in New Issue