- Newest
- Most votes
- Most comments
-
Yes, you can create a new period for specific weekend days without changing your existing weekday schedule. You can create a new period called "weekend-work" (or any name you prefer) and specify the exact dates you need the instance to run. For example, you could set up a period with specific monthdays and months for the Sundays you plan to work. Then, add this new period to your existing schedule. The Instance Scheduler will start and stop the instance automatically on those specified days.
-
For holidays, you can indeed create a specific period to stop instances. However, the period you've shown is actually set to run the instance all day (from 00:00 to 23:59) on October 10th and 11th, rather than stopping it. To stop the instance on specific holidays, you should create a period without a begintime or endtime. This will ensure the instance remains stopped for the entire day. For example:
{
"type": "period",
"name": "Holiday",
"description": "Holidays on October 10 and 11",
"monthdays": ["10", "11"],
"months": ["10"]
}
Add this period to your schedule, and the Instance Scheduler will keep the instances stopped on these days.
- The Instance Scheduler is designed to work with a single tag key for scheduling, which is defined during the initial configuration. It's not possible to use multiple different tag keys for scheduling within a single Instance Scheduler deployment. However, you can work around this limitation by using a combination of your existing "Schedule" tag and AWS Systems Manager.
Here's a potential solution:
- Continue using the "Schedule" tag for your regular office hours scheduling.
- Use your mandatory "Purpose" tag with the "Test" value as required.
- Create an AWS Systems Manager Automation document that stops instances with the "Purpose" tag set to "Test" outside of office hours.
- Set up an EventBridge rule to trigger this Automation document at the end of each workday.
This approach allows you to maintain your existing Instance Scheduler configuration while also addressing your requirement to stop "Test" instances after office hours without deploying another Instance Scheduler.
Sources
Automate stop and start schedules - AWS Prescriptive Guidance
Period reference - Instance Scheduler on AWS
Schedule reference - Instance Scheduler on AWS
Operator guide - Instance Scheduler on AWS
Relevant content
- asked 3 years ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago