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
c9cc82d8
Commit
c9cc82d8
authored
Sep 05, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon-chroot: add description with time created snapshot
[GH-1388]
parent
c6243a2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CHANGELOG.md
CHANGELOG.md
+2
-0
builder/amazon/chroot/step_snapshot.go
builder/amazon/chroot/step_snapshot.go
+5
-1
No files found.
CHANGELOG.md
View file @
c9cc82d8
...
...
@@ -55,6 +55,8 @@ BUG FIXES:
*
core: SSH TCP keepalive period is now 5 seconds (shorter). [GH-1232]
*
builder/amazon-chroot: Can properly build HVM images now. [GH-1360]
*
builder/amazon-chroot: Fix crash in root device check. [GH-1360]
*
builder/amazon-chroot: Add description that Packer made the snapshot
with a time. [GH-1388]
*
builder/amazon-instance: Fix deprecation warning for
`ec2-bundle-vol`
[GH-1424]
*
builder/amazon-instance: Add
`--no-filter`
to the
`ec2-bundle-vol`
...
...
builder/amazon/chroot/step_snapshot.go
View file @
c9cc82d8
...
...
@@ -3,6 +3,8 @@ package chroot
import
(
"errors"
"fmt"
"time"
"github.com/mitchellh/goamz/ec2"
"github.com/mitchellh/multistep"
awscommon
"github.com/mitchellh/packer/builder/amazon/common"
...
...
@@ -23,7 +25,9 @@ func (s *StepSnapshot) Run(state multistep.StateBag) multistep.StepAction {
volumeId
:=
state
.
Get
(
"volume_id"
)
.
(
string
)
ui
.
Say
(
"Creating snapshot..."
)
createSnapResp
,
err
:=
ec2conn
.
CreateSnapshot
(
volumeId
,
""
)
createSnapResp
,
err
:=
ec2conn
.
CreateSnapshot
(
volumeId
,
fmt
.
Sprintf
(
"Packer: %s"
,
time
.
Now
()
.
String
()))
if
err
!=
nil
{
err
:=
fmt
.
Errorf
(
"Error creating snapshot: %s"
,
err
)
state
.
Put
(
"error"
,
err
)
...
...
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