AWS instance scheduler not working

0

I have installed aws instance scheduler via cloudformation stack. I have also configured a schedule and a period as well as added a tag to the ec2 instance. i have verified all the settings are correct and i see the job being run on the schedule but it isnt stopping/starting the instance.

isaka
質問済み 1年前974ビュー
1回答
1

Hello there, please check if your EBS volume is encrypted. If it is, then the issue may be that the IAM role used doesn't have the correct KMS permissions. If you are able to confirm that this is the issue then you'll need to grant the Instance Scheduler permission to use the customer master key (CMK) to start and stop instances. Add the kms:CreateGrant permission to the Instance Scheduler role (<stackname>-SchedulerRole-<id>)[1].

If the above is not the issue, you will then need to check the Cloudwatch Log group for the instance sheduler lambda function, the log group created will have the below files[2]:

  • InstanceScheduler-yyyymmdd: Logs general scheduler messages
  • CloudWatchEventHandler-yyyymmdd: Logs general Amazon CloudWatch event rule information
  • SchedulerSetupHandler: Logs the output of configuration actions
  • Scheduler-<service>-<account>-<region>-yyyymmdd: Logs the service, account, and region of each scheduled instance
  • AdminCliRequestHandler-yyyymmdd: Logs requests from the admin CLI

You will need to look at each, but I recommend starting with InstanceScheduler-yyyymmdd, as any issues with starting/stopping the error would be seen here.

AWS
サポートエンジニア
mogeni
回答済み 1年前
  • Thank you! Ran into this issue with trying to hibernate instances automatically, which requires encrypted EBS volumes.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ