diff --git a/CHANGELOG.md b/CHANGELOG.md index ac355d772..3b01b521e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/builder/amazon/chroot/step_snapshot.go b/builder/amazon/chroot/step_snapshot.go index cadf65f52..cad4b782b 100644 --- a/builder/amazon/chroot/step_snapshot.go +++ b/builder/amazon/chroot/step_snapshot.go @@ -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)