mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-20 06:51:39 -04:00
builder/amazon: region copy must go before modify attributes
/cc @jmassara - This has to go before the modify attributes so that the attributes are properly modified on all resulting AMIs.
This commit is contained in:
@@ -211,6 +211,10 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||
&StepBundleVolume{},
|
||||
&StepUploadBundle{},
|
||||
&StepRegisterAMI{},
|
||||
&awscommon.StepAMIRegionCopy{
|
||||
Regions: b.config.AMIRegions,
|
||||
Tags: b.config.Tags,
|
||||
},
|
||||
&awscommon.StepCreateTags{Tags: b.config.Tags},
|
||||
&awscommon.StepModifyAMIAttributes{
|
||||
Description: b.config.AMIDescription,
|
||||
@@ -218,10 +222,6 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||
Groups: b.config.AMIGroups,
|
||||
ProductCodes: b.config.AMIProductCodes,
|
||||
},
|
||||
&awscommon.StepAMIRegionCopyAttributes{
|
||||
Regions: b.config.AMIRegions,
|
||||
Tags: b.config.Tags,
|
||||
},
|
||||
}
|
||||
|
||||
// Run!
|
||||
|
||||
Reference in New Issue
Block a user