builder/amazon: support tags in chroot and instance
This commit is contained in:
parent
50e2535bd8
commit
0306759840
|
@ -6,6 +6,10 @@ FEATURES:
|
||||||
* builder/vmware: The root hard drive type can now be specified with
|
* builder/vmware: The root hard drive type can now be specified with
|
||||||
"disk_type_id" for advanced users. [GH-328]
|
"disk_type_id" for advanced users. [GH-328]
|
||||||
|
|
||||||
|
IMPROVEMENTS:
|
||||||
|
|
||||||
|
* builder/amazon: Tagging now works with all amazon builder types.
|
||||||
|
|
||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
* core: Fixed a couple cases where a double ctrl-C could panic.
|
* core: Fixed a couple cases where a double ctrl-C could panic.
|
||||||
|
|
|
@ -189,6 +189,13 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&StepEarlyCleanup{},
|
&StepEarlyCleanup{},
|
||||||
&StepSnapshot{},
|
&StepSnapshot{},
|
||||||
&StepRegisterAMI{},
|
&StepRegisterAMI{},
|
||||||
|
&awscommon.StepAMIRegionCopy{
|
||||||
|
Regions: b.config.AMIRegions,
|
||||||
|
Tags: b.config.AMITags,
|
||||||
|
},
|
||||||
|
&awscommon.StepCreateTags{
|
||||||
|
Tags: b.config.AMITags,
|
||||||
|
},
|
||||||
&awscommon.StepModifyAMIAttributes{
|
&awscommon.StepModifyAMIAttributes{
|
||||||
Description: b.config.AMIDescription,
|
Description: b.config.AMIDescription,
|
||||||
Users: b.config.AMIUsers,
|
Users: b.config.AMIUsers,
|
||||||
|
|
|
@ -33,7 +33,6 @@ type Config struct {
|
||||||
BundleUploadCommand string `mapstructure:"bundle_upload_command"`
|
BundleUploadCommand string `mapstructure:"bundle_upload_command"`
|
||||||
BundleVolCommand string `mapstructure:"bundle_vol_command"`
|
BundleVolCommand string `mapstructure:"bundle_vol_command"`
|
||||||
S3Bucket string `mapstructure:"s3_bucket"`
|
S3Bucket string `mapstructure:"s3_bucket"`
|
||||||
Tags map[string]string
|
|
||||||
X509CertPath string `mapstructure:"x509_cert_path"`
|
X509CertPath string `mapstructure:"x509_cert_path"`
|
||||||
X509KeyPath string `mapstructure:"x509_key_path"`
|
X509KeyPath string `mapstructure:"x509_key_path"`
|
||||||
X509UploadPath string `mapstructure:"x509_upload_path"`
|
X509UploadPath string `mapstructure:"x509_upload_path"`
|
||||||
|
@ -213,9 +212,11 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
&StepRegisterAMI{},
|
&StepRegisterAMI{},
|
||||||
&awscommon.StepAMIRegionCopy{
|
&awscommon.StepAMIRegionCopy{
|
||||||
Regions: b.config.AMIRegions,
|
Regions: b.config.AMIRegions,
|
||||||
Tags: b.config.Tags,
|
Tags: b.config.AMITags,
|
||||||
|
},
|
||||||
|
&awscommon.StepCreateTags{
|
||||||
|
Tags: b.config.AMITags,
|
||||||
},
|
},
|
||||||
&awscommon.StepCreateTags{Tags: b.config.Tags},
|
|
||||||
&awscommon.StepModifyAMIAttributes{
|
&awscommon.StepModifyAMIAttributes{
|
||||||
Description: b.config.AMIDescription,
|
Description: b.config.AMIDescription,
|
||||||
Users: b.config.AMIUsers,
|
Users: b.config.AMIUsers,
|
||||||
|
|
Loading…
Reference in New Issue