-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-schedule tag on Instance Scheduler #322
Comments
It is similar to #259, but one additional requirement like if ec2 stopped manually, it should not be started by Instance Scheduler.
and Period as
But Somehow the configuration is not working and manually stopped ec2 instances are getting started by instance scheduler. |
I am seeing one issue here Enforced field |
Hi @anuj1366 , I am also stuck in the same situation where if instance is manually stopped then instance scheduler should not start ec2 next day but it is starting it. Were you able to find any workaround for this? |
This feature is still under consideration, however a workaround that should enable similar behavior in the current version of Instance Scheduler (v1.5.1) would be to create a schedule similar to the following:
under this configuration, Instance Scheduler will start an instance when it is first tagged, but after that initial start will not take action against the instance again, even if it is stopped manually. This works because the default behavior of instance scheduler (when enforced is false) is to only take start/stop actions when a schedule transitions between running/stopped states. If the running period specifies 24-7 uptime, there will be no transitions for actions to occur on except for when an instance is first registered with the solution. |
Could it be a new "dry-run" key on the schedule that won't actually change the state of an instance. |
@vic614 something like a Very interested in if you have a use-case where a dry-run key would be preferable to other possibilities |
I am thinking to add |
For our Hub / Spoke instance scheduler, we have developed a "reset" functionality (similar to an idle timeout). Manual starts in any of our accounts, trigger an account Lambda that writes the details to a DynamoDB table (Instance ID, Account ID, Manual Action, datetime) in a central account. A worker Lambda in the central account runs every hour, scans the DynamoDB table for any entries where the datetime is aged (we use 24 hours). Aged entries are deleted and the corresponding entry in the instance scheduler state table is also deleted. The effect of this is to bring the EC2 back under the control of instance scheduler. |
Hello,
Is there a way to define a tag or period that does not schedule instance? We want to introduce the tag key as a mandatory value.
Customer want to run their ec2 instances 24/7. But if they have manually stopped the instance for some reason, Instance scheduler doesn't start the instances.
Thank you
The text was updated successfully, but these errors were encountered: