On Thu, 23 Oct 2014 15:03:22 -0400 Ted Zlatanov <[email protected]> wrote: 

TZ> On Thu, 23 Oct 2014 14:37:06 -0400 Ted Zlatanov <[email protected]> wrote: 
TZ> I'd like to snapshot EC2 volumes only when needed.  I couldn't find an
TZ> easy solution that didn't require calling out to boto or other tools.
TZ> If it exists, please ignore the following :)  I wanted to ask here
TZ> before opening a feature or pull request.

TZ> Alternate suggestion for this new behavior: copy the ec2 module's count
TZ> options. It would add these options to ec2_snapshot.py:
...

Final suggestion :)

boto has a nice `trim_snapshots()` method [1] that could simply be
called inline, given appropriate parameters from the ec2_snapshot
module. I could use that too, but it seems much less flexible than the
ec2 module's exact_count/count_tag approach.

Thanks!
Ted

[1] 
http://boto.readthedocs.org/en/latest/ref/ec2.html#boto.ec2.connection.EC2Connection.trim_snapshots

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/m238aefs4f.fsf%40lifelogs.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to