Quoting the AWS documentation "Note that you can't delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first deregister the AMI before you can delete the snapshot. For more information, see Deregistering Your AMI." http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html
If there are snapshots from failed builds I think it's a bug. Please file an issue. On Aug 24, 2016 9:33 PM, "Carlos Tovar" <[email protected]> wrote: > I am running into the same issue. Does anybody have any ideas? > > On Friday, June 17, 2016 at 6:49:37 AM UTC-5, Vinaykumar Kadalagi wrote: >> >> Hi I have been using packer since last few days. It is creating AMIs >> along with snaphots under EBS -> Snapshots. >> And they are not removed even after the build is successful or a failure. >> Is it suppose to remove it or no? If no, Why? And how can it be improved? >> > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/86be55ae-82aa-401a-8390-3a86b476b873%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/86be55ae-82aa-401a-8390-3a86b476b873%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt8pADMy6Fx5JYkVZS2WUwAz4erEjAt605eL%2Bxy7O0hmtA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
