- Newest
- Most votes
- Most comments
I see several issues with your DynamoDB table configuration for the Instance Scheduler that would prevent it from working correctly:
-
Inconsistent attribute naming: You have a mix of lowercase and capitalized attribute names (e.g., "weekdays" vs "Weekdays", "periods" vs "Periods"). The Instance Scheduler expects consistent attribute naming.
-
Incorrect data types: Some of your values are in array format with type indicators like
[{"S":"Monday"}]which suggests you're viewing the raw DynamoDB representation rather than the actual values. -
Missing connections: Your "Shift1" schedule references a period named "Shift1" in its "Periods" attribute, but there's no corresponding period with that name. Instead, you have "shift1period", "shift2period", and "shift3period".
-
Incorrect time formats: For the shift periods, the time formats are inconsistent. For example, "shift1period" has endtime "3:00" and Starttime "1:00", which is confusing (end time before start time).
To fix these issues:
-
Ensure consistent attribute naming - use lowercase for all attributes (e.g., "type", "name", "begintime", "endtime", "weekdays", "periods").
-
Make sure your periods are properly defined with correct begin and end times. For example:
type: period
name: shift1period
begintime: 01:00
endtime: 03:00
weekdays: mon-fri
- Update your schedules to reference the correct period names:
type: schedule
name: Shift1
periods: [shift1period]
timezone: EST
-
Remove duplicate attributes (e.g., having both "Timezone" and "timezone").
-
Ensure time formats are consistent (use HH:MM format).
After making these corrections, your Instance Scheduler should start working as expected.
Sources
Automate stop and start schedules - AWS Prescriptive Guidance
Troubleshoot the Instance Scheduler on AWS for EC2 instances | AWS re:Post
Schedule reference - Instance Scheduler on AWS
answered a year ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
