Closed boutetnico closed 4 years ago
Is this in reference to an existing issue? No
[x] Update Changelog following the conventions laid out here
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[ ] RuboCop passes
[ ] Existing tests pass
[ ] Tests
[x] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Warn about upcoming instance reservations expiration.
Example usage:
Check all reservations in a region:
$ ruby check-expiring-reservations.rb -r eu-west-1 CheckExpiringReservations OK: All checked reservations are ok
Check if a specific reservation <reservation_id> expires before 15 days with critical status:
<reservation_id>
$ ruby check-expiring-reservations.rb -r eu-west-1 -R <reservation_id> -c 15 CheckExpiringReservations CRITICAL: reservation <reservation_id> (r5.xlarge x 1) expires in 11 days;
Warn if any reservation in the region expires before 30 days:
$ ruby check-expiring-reservations.rb -r eu-west-1 -w 30 CheckExpiringReservations WARNING: reservation <reservation_id> (c5.large x 4) expires in 21 days; reservation <reservation_id> (r5.xlarge x 1) expires in 11 days;
None
Pull Request Checklist
Is this in reference to an existing issue? No
General
[x] Update Changelog following the conventions laid out here
[ ] Update README with any necessary configuration snippets
[ ] Binstubs are created if needed
[ ] RuboCop passes
[ ] Existing tests pass
New Plugins
[ ] Tests
[x] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Purpose
Warn about upcoming instance reservations expiration.
Example usage:
Check all reservations in a region:
Check if a specific reservation
<reservation_id>
expires before 15 days with critical status:Warn if any reservation in the region expires before 30 days:
Known Compatibility Issues
None