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

Home Page:https://aws.amazon.com/solutions/implementations/instance-scheduler-on-aws/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Masking schedules between date ranges

Idosegal opened this issue · comments

There are cases which environments needs to be up for a different reasons.

For example: QA needs the environment up for a specific date range because of testing before a new version release etc.

This issue opened to verify if it's possible and if not to implement an automatic way to "mask" schedules for specific date range and get back to a default value when the end date passed.

It's possible to specify 'datemonth' but there is no way to specify the year.
In case that a year can be used in period I can use the cli to update a custom period in addition to a default one.
But current behavior will run the instances every year in the date range provided.

hi @Idosegal

I'm not sure I completely follow, could you give an example scenario and explain what you would like to be able to achieve with Instance Scheduler in that scenario?

Hi thank you for your response.

Sometimes there are exceptions and the environment should be up
for a specific date range.

So we want to do the instance scheduler like "self service" and give the qa for example the ability to change the period for a schedule in a simple way and get back to the default period when the time passed- to avoid people to forget change it back to the default manually.

For example:
I have a "default" schedule for environment staging with period sun-thu 2:00-18:00.
For some reason I need this environment to be up between: 1-30 July 2023. So want that at the end of 30 July thy the staging schedule will get back to the default period.

I hope it's more clear now.

Hi @Idosegal

Have you looked into using the feature in SSM called Resource Scheduler, Resource Scheduler creates State Manager resources for the default start/stop, Resource Scheduler also creates a change calendar, where you can temporarily override the default start and stop times.

But it possible to use it within the solution, or I need to configure it outside?

Hi @Idosegal
Resource Scheduler is not part of the Instance Scheduler solution, its a QuickSetup feature in Systems Manager service.