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
preguntada hace un año958 visualizaciones
1 Respuesta
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
INGENIERO DE SOPORTE
mogeni
respondido hace un año
  • Thank you! Ran into this issue with trying to hibernate instances automatically, which requires encrypted EBS volumes.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas