Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
b95ad0c2
Commit
b95ad0c2
authored
Dec 16, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon/all: launched instances have a name [GH-642]
parent
4c6800f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
CHANGELOG.md
CHANGELOG.md
+2
-0
builder/amazon/common/step_run_source_instance.go
builder/amazon/common/step_run_source_instance.go
+8
-2
No files found.
CHANGELOG.md
View file @
b95ad0c2
...
...
@@ -23,6 +23,8 @@ IMPROVEMENTS:
*
core: Plugins communicate over a single TCP connection per plugin now,
instead of sometimes dozens. Performance around plugin communication
dramatically increased.
*
builder/amazon/all: Launched EC2 instances now have a name of
"Packer Builder" so that they are easily recognizable. [GH-642]
*
builder/amazon/all: Copying AMIs to multiple regions now happens
in parallel. [GH-495]
*
builder/qemu: Floppy files are supported. [GH-686]
...
...
builder/amazon/common/step_run_source_instance.go
View file @
b95ad0c2
...
...
@@ -6,7 +6,6 @@ import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"io/ioutil"
"log"
)
type
StepRunSourceInstance
struct
{
...
...
@@ -91,7 +90,14 @@ func (s *StepRunSourceInstance) Run(state multistep.StateBag) multistep.StepActi
}
s
.
instance
=
&
runResp
.
Instances
[
0
]
log
.
Printf
(
"instance id: %s"
,
s
.
instance
.
InstanceId
)
ui
.
Message
(
fmt
.
Sprintf
(
"Instance ID: %s"
,
s
.
instance
.
InstanceId
))
_
,
err
=
ec2conn
.
CreateTags
(
[]
string
{
s
.
instance
.
InstanceId
},
[]
ec2
.
Tag
{{
"Name"
,
"Packer Builder"
}})
if
err
!=
nil
{
ui
.
Message
(
fmt
.
Sprintf
(
"Failed to tag a Name on the builder instance: %s"
,
err
))
}
ui
.
Say
(
fmt
.
Sprintf
(
"Waiting for instance (%s) to become ready..."
,
s
.
instance
.
InstanceId
))
stateChange
:=
StateChangeConf
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment