diff --git a/builder/amazon/chroot/builder.go b/builder/amazon/chroot/builder.go index 637b1e40f..b46ddbf62 100644 --- a/builder/amazon/chroot/builder.go +++ b/builder/amazon/chroot/builder.go @@ -189,9 +189,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Name: b.config.AMIName, }, &awscommon.StepModifyAMIAttributes{ - Description: b.config.AMIDescription, - Users: b.config.AMIUsers, - Groups: b.config.AMIGroups, + Description: b.config.AMIDescription, + Users: b.config.AMIUsers, + Groups: b.config.AMIGroups, + ProductCodes: b.config.AMIProductCodes, }, &awscommon.StepCreateTags{ Tags: b.config.AMITags, diff --git a/builder/amazon/ebs/builder.go b/builder/amazon/ebs/builder.go index 50274ef87..3c576f9e0 100644 --- a/builder/amazon/ebs/builder.go +++ b/builder/amazon/ebs/builder.go @@ -160,9 +160,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe Name: b.config.AMIName, }, &awscommon.StepModifyAMIAttributes{ - Description: b.config.AMIDescription, - Users: b.config.AMIUsers, - Groups: b.config.AMIGroups, + Description: b.config.AMIDescription, + Users: b.config.AMIUsers, + Groups: b.config.AMIGroups, + ProductCodes: b.config.AMIProductCodes, }, &awscommon.StepCreateTags{ Tags: b.config.AMITags,