aws / amazon-ec2-spot-interrupter

The ec2-spot-interrupter is a simple CLI tool that triggers Amazon EC2 Spot Interruption Notifications and Rebalance Recommendations.
Apache License 2.0
87 stars 11 forks source link

tag based instance selection #1

Open bwagner5 opened 2 years ago

bwagner5 commented 2 years ago

Add tag based instance selection to find instances to send an interruption to.

$ ec2-spot-interrupter -t Dev:my-dev

1. MyAL2Instance (i-0123456789)
2. MyOtherInstance (i-9876543210)
3. ... 

Select instances:  1-3 

I'm open to other interfaces for picking the instance types. Maybe adding an "A" for all and "R" for random ?

brycahta commented 2 years ago

Sounds good to me. Only note is I think you're demonstrating in interactive mode which will be addressed after cli/flag (regular mode) implementation.

Maybe adding an "A" for all and "R" for random ?

That'd be cool! Would the instance selection/filtering be stackable? Ex:

bwagner5 commented 2 years ago

Yeah! Stacking would be great!