Adds support for adding tags to the AMI
This commit is contained in:
parent
096a64ad92
commit
d6f8411c43
|
@ -68,7 +68,7 @@ func (s *stepCreateAMI) Run(state map[string]interface{}) multistep.StepAction {
|
|||
|
||||
// Add tags to AMI
|
||||
if s.Tags != nil {
|
||||
ui.Say(fmt.Sprintf("Add tags to AMI (%s)...", createResp.ImageId))
|
||||
ui.Say(fmt.Sprintf("Adding tags to AMI (%s)...", createResp.ImageId))
|
||||
amiId := []string{createResp.ImageId}
|
||||
_, err := ec2conn.CreateTags(amiId, s.Tags)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue