aws-solutions / instance-scheduler-on-aws

A cross-account and cross-region solution that allows customers to automatically start and stop EC2 and RDS Instances
https://aws.amazon.com/solutions/implementations/instance-scheduler-on-aws/
Apache License 2.0
555 stars 274 forks source link

backup_window as parameter - feature request. #355

Open natalia-1702 opened 1 year ago

natalia-1702 commented 1 year ago

Hi team, Currently to start and stop instance during maintenance window we don't need to add separated period, we just add parameter: use_maintenance_window - true.

Is it possible to implement the same functionality regarding "Backup windows" ? It would get setting schedules much easier and more flexible. I think this is must have feature. Thanks.

gockle commented 1 year ago

Hi @nalalia-1702 If I understand this correctly you are using maintenance windows for RDS instances? Can you provide documentation reference to the Backup windows?

natalia-1702 commented 1 year ago

@gockle https://s3.amazonaws.com/solutions-reference/aws-instance-scheduler/latest/instance-scheduler.pdf

image
CrypticCabub commented 1 year ago

@nalalia-1702 was that the correct link? It goes to our documentation regarding maintenance window support but I think gockle was asking for more information on the backup windows you were requesting support for.

natalia-1702 commented 1 year ago

hi @CrypticCabub @gockle, what I mean - would be good to have the same functionality for Backup Windows as you implemented for Maintenance Windows.

Backup Windows : Currently if I want the instance be started and stopped before and after Backup Window - I need to create additional period ( hardcode starting time and stopping time).

Maintenance Windows: For MW currently you don't need to create additional period , right? you can just specify use_maintenance_window - true. ( for RDS).

Would be really nice to have the same functionality for Backup Windows - we could just specify use_backup_window - true in a schedule , and Instance Scheduler could start and stop the instance automatically.

for example: We have RDS instance which has Backup Window, Maintenance Window, and regular schedule:

-schedule: Monday-Friday 8:00am-5:00pm -MW - Saturday 11:00pm-11:30pm -BW - Every day 10:00pm

for such case now we need to create additional period to have the instance started and stopped during BackupWindow.