IMHO when it comes to more advanced lifecycle management it's better done with a script (shell, python, etc). It's very easy to create a advanced python script using boto3 to manage you AMI's. And then hook it into you CD pipeline so it runs after creation/promotion of new AMI's.
On 22 March 2018 at 20:17, Tiago Faria <[email protected]> wrote: > Hi Megan, > > Thank you for the information. force_deregister and force_delete_snapshot > are a great combo. > > Guess the only thing missing to have a full management solution would be > to have the AMI being deleted if one with the same tag, for example, > already existed. Similar to the plugin I posted. > > If anyone is doing this across different regions I’d be happy to know how. > > Thanks! > T > > On Thu, 22 Mar 2018 at 16:36, Megan Marsh <[email protected]> wrote: > >> As of last summer, the force_deregister flag should work across multiple >> regions. Take a look at https://www.packer.io/docs/ >> builders/amazon-ebs.html#force_deregister for details. >> >> -- >> 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 a topic in the >> Google Groups "Packer" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/ >> topic/packer-tool/M2Gxk_gtchc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/packer-tool/CAGPV1upxts%2BzEvU_OLwfkFsi- >> q0jNOukgpKprvHGSJuxV-%2B5gA%40mail.gmail.com >> <https://groups.google.com/d/msgid/packer-tool/CAGPV1upxts%2BzEvU_OLwfkFsi-q0jNOukgpKprvHGSJuxV-%2B5gA%40mail.gmail.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/CAF8FeX8K_0sEAZUaO-LT-hTMSMdO89k9YKYeirJPFpYm%2B_ > u7Og%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CAF8FeX8K_0sEAZUaO-LT-hTMSMdO89k9YKYeirJPFpYm%2B_u7Og%40mail.gmail.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/CALz9Rt9On4X6M8XEq2RQN2VQ_o-mVbt%2Bm6ZTUz-NBH2hTAxEqA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
