我们已通过Cloudformation配置了实例计划程序,如此处所述
https://aws.amazon.com/answers/infrastructure-management/instance-scheduler/
我们删除了解决方案随附的样本计划和周期。我们保留了配置条目。 我们添加了以下时间段和时间表,并且假定实例处于关闭状态时它们正在运行。有什么想法,建议吗?我们缺少什么吗?
尝试使用月标记,没有,使用开始时间/结束时间,不使用。唯一相关的是“工作日星期六#1”。
感谢您的帮助。
[root@ip-8-8-8-8 ~]# scheduler-cli create-period --name "first-saturday" --region us-east-2 --weekdays sat#1 --begintime 00:00 --endtime 18:00 --months Jan/1 --description 'First Saturday of the month' --stack DTS-INSTANCES-SCHEDULER-STACK
{
"Period": {
"Name": "first-saturday",
"Months": [
"Jan/1"
],
"Weekdays": [
"sat#1"
],
"Begintime": "00:00",
"Endtime": "18:00",
"Type": "period",
"Description": "First Saturday of the month"
}
}
[root@ip-8-8-8-8 ~]# scheduler-cli create-schedule --name "monthly-task" --periods first-saturday --timezone US/Mountain --enforced true --retain-running false --description 'Monthly tasks.' --stack DTS-INSTANCES-SCHEDULER-STACK --region us-east-2
{
"Schedule": {
"RetainRunning": true,
"Enforced": true,
"Description": "Monthly task.",
"StopNewInstances": true,
"Periods": [
"first-saturday"
],
"Timezone": "US/Mountain",
"Type": "schedule",
"Name": "monthly-task"
}
}
[root@ip-8-8-8-8 ~]#