Add AMI Product Codes modification for amazon-ebs & amazon-chroot
This commit is contained in:
parent
25108c8d13
commit
9c8405b2c6
|
@ -189,9 +189,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
Name: b.config.AMIName,
|
Name: b.config.AMIName,
|
||||||
},
|
},
|
||||||
&awscommon.StepModifyAMIAttributes{
|
&awscommon.StepModifyAMIAttributes{
|
||||||
Description: b.config.AMIDescription,
|
Description: b.config.AMIDescription,
|
||||||
Users: b.config.AMIUsers,
|
Users: b.config.AMIUsers,
|
||||||
Groups: b.config.AMIGroups,
|
Groups: b.config.AMIGroups,
|
||||||
|
ProductCodes: b.config.AMIProductCodes,
|
||||||
},
|
},
|
||||||
&awscommon.StepCreateTags{
|
&awscommon.StepCreateTags{
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
|
|
|
@ -149,9 +149,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
Name: b.config.AMIName,
|
Name: b.config.AMIName,
|
||||||
},
|
},
|
||||||
&awscommon.StepModifyAMIAttributes{
|
&awscommon.StepModifyAMIAttributes{
|
||||||
Description: b.config.AMIDescription,
|
Description: b.config.AMIDescription,
|
||||||
Users: b.config.AMIUsers,
|
Users: b.config.AMIUsers,
|
||||||
Groups: b.config.AMIGroups,
|
Groups: b.config.AMIGroups,
|
||||||
|
ProductCodes: b.config.AMIProductCodes,
|
||||||
},
|
},
|
||||||
&awscommon.StepCreateTags{
|
&awscommon.StepCreateTags{
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
|
|
Loading…
Reference in New Issue