Instances not Starting
One Instance don't get started.
The Instance Scheduler role has the kms:CreateGrant permission and the Instance Scheduler can start and stop other Instances with or without encrypted EBS.
This is the cloudwatch log
2021-02-17 - 13:45:20.503 - INFO : Handler SchedulerRequestHandler scheduling request for service(s) ec2, account(s) 472157956312, region(s) eu-central-1 at 2021-02-17 13:45:20.503507
2021-02-17 - 13:45:20.684 - INFO : Running EC2 scheduler for account xyz in region(s) eu-central-1 2021-02-17 - 13:45:21.284 - INFO : Fetching ec2 instances for account xyz in region eu-central-1 2021-02-17 - 13:45:21.583 - DEBUG : Selected ec2 instance i-02dbc978e2165b2c4 in state (stopped) 2021-02-17 - 13:45:21.583 - INFO : Number of fetched ec2 instances is 1, number of instances in a schedulable state is 1 2021-02-17 - 13:45:21.883 - DEBUG : [ Instance EC2:i-02dbc978e2165b2c4 (xxxx) ] 2021-02-17 - 13:45:21.883 - DEBUG : Current state is stopped, instance type is t3.medium, schedule is "working-days-7-20" 2021-02-17 - 13:45:21.884 - DEBUG : Time used to determine desired for instance is Wed Feb 17 14:45:19 2021 2021-02-17 - 13:45:21.884 - DEBUG : Checking conditions for period "working-days-7-20" 2021-02-17 - 13:45:21.884 - DEBUG : [running] Weekday "wed" in weekdays (mon-fri) 2021-02-17 - 13:45:21.884 - DEBUG : [running] Time 14:45:19 is within 07:00:00-20:00:00, returned state is running 2021-02-17 - 13:45:21.884 - DEBUG : Active period in schedule "working-days-7-20": "working-days-7-20" 2021-02-17 - 13:45:21.884 - DEBUG : Desired state for instance from schedule "working-days-7-20" is running, last desired state was running, actual state is stopped 2021-02-17 - 13:45:21.884 - INFO : Scheduler result {'xyz': {'started': {}, 'stopped': {}, 'resized': {}}}
Hi @hniemann ,
Is this issue still reproducible?
For further investigation, Can you please share the period and schedules from ConfigTable in dynamoDB. and instance state from the stateTable.
Thanks, Praveen