builder/amazon: modify attributes before region copy
/cc @jmassara
This commit is contained in:
parent
d9e80803c9
commit
f4f433d0d8
|
@ -189,6 +189,11 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&StepEarlyCleanup{},
|
&StepEarlyCleanup{},
|
||||||
&StepSnapshot{},
|
&StepSnapshot{},
|
||||||
&StepRegisterAMI{},
|
&StepRegisterAMI{},
|
||||||
|
&awscommon.StepModifyAMIAttributes{
|
||||||
|
Description: b.config.AMIDescription,
|
||||||
|
Users: b.config.AMIUsers,
|
||||||
|
Groups: b.config.AMIGroups,
|
||||||
|
},
|
||||||
&awscommon.StepAMIRegionCopy{
|
&awscommon.StepAMIRegionCopy{
|
||||||
Regions: b.config.AMIRegions,
|
Regions: b.config.AMIRegions,
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
|
@ -196,11 +201,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&awscommon.StepCreateTags{
|
&awscommon.StepCreateTags{
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
},
|
},
|
||||||
&awscommon.StepModifyAMIAttributes{
|
|
||||||
Description: b.config.AMIDescription,
|
|
||||||
Users: b.config.AMIUsers,
|
|
||||||
Groups: b.config.AMIGroups,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run!
|
// Run!
|
||||||
|
|
|
@ -104,6 +104,11 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&common.StepProvision{},
|
&common.StepProvision{},
|
||||||
&stepStopInstance{},
|
&stepStopInstance{},
|
||||||
&stepCreateAMI{},
|
&stepCreateAMI{},
|
||||||
|
&awscommon.StepModifyAMIAttributes{
|
||||||
|
Description: b.config.AMIDescription,
|
||||||
|
Users: b.config.AMIUsers,
|
||||||
|
Groups: b.config.AMIGroups,
|
||||||
|
},
|
||||||
&awscommon.StepAMIRegionCopy{
|
&awscommon.StepAMIRegionCopy{
|
||||||
Regions: b.config.AMIRegions,
|
Regions: b.config.AMIRegions,
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
|
@ -111,11 +116,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&awscommon.StepCreateTags{
|
&awscommon.StepCreateTags{
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
},
|
},
|
||||||
&awscommon.StepModifyAMIAttributes{
|
|
||||||
Description: b.config.AMIDescription,
|
|
||||||
Users: b.config.AMIUsers,
|
|
||||||
Groups: b.config.AMIGroups,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run!
|
// Run!
|
||||||
|
|
|
@ -210,6 +210,12 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&StepBundleVolume{},
|
&StepBundleVolume{},
|
||||||
&StepUploadBundle{},
|
&StepUploadBundle{},
|
||||||
&StepRegisterAMI{},
|
&StepRegisterAMI{},
|
||||||
|
&awscommon.StepModifyAMIAttributes{
|
||||||
|
Description: b.config.AMIDescription,
|
||||||
|
Users: b.config.AMIUsers,
|
||||||
|
Groups: b.config.AMIGroups,
|
||||||
|
ProductCodes: b.config.AMIProductCodes,
|
||||||
|
},
|
||||||
&awscommon.StepAMIRegionCopy{
|
&awscommon.StepAMIRegionCopy{
|
||||||
Regions: b.config.AMIRegions,
|
Regions: b.config.AMIRegions,
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
|
@ -217,12 +223,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&awscommon.StepCreateTags{
|
&awscommon.StepCreateTags{
|
||||||
Tags: b.config.AMITags,
|
Tags: b.config.AMITags,
|
||||||
},
|
},
|
||||||
&awscommon.StepModifyAMIAttributes{
|
|
||||||
Description: b.config.AMIDescription,
|
|
||||||
Users: b.config.AMIUsers,
|
|
||||||
Groups: b.config.AMIGroups,
|
|
||||||
ProductCodes: b.config.AMIProductCodes,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run!
|
// Run!
|
||||||
|
|
Loading…
Reference in New Issue