- Newest
- Most votes
- Most comments
Hello Bdacebedo,
I understand that you want to schedule the start and stop of your instances but there is one instance that you want to start/stop on weekends. You are currently using the AWS instance scheduler and it is working perfectly fine. However, you would like to customize it based on your scenario.
You are in the right direction of creating a custom schedule in AWS instance scheduler[1]. To add a schedule period for your instance you will modify the DynamoDB table and create two more period for your schedule [2]. Below is a sample JSON code that can be used to set schedule period for Saturday from 7:00 AM to 5:00 PM:
{
"type": {
"S": "period"
},
"name": {
"S": "sat-7-5"
},
"begintime": {
"S": "7:00"
},
"endtime": {
"S": "16:59"
},
"weekdays": {
"SS": [
"sat"
]
}
}
You will do the same when creating the period for Sunday. Then modify your schedule and add the periods you created. For the period described above the schedule will look as follows:
{
"type": {
"S": "schedule"
},
"name": {
"S": "schedule-name"
},
"timezone": {
"S": "UTC"
},
"periods": {
"SS": [
"sat-7-5"
]
}
}
When more than one period is used in a schedule, the Instance Scheduler will apply the appropriate start action when at least one of the period rules is true. For more information, refer to Period Rules.
References:
Relevant content
- asked 2 years ago
- asked 2 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago