Skip to content

EventBridge Scheduler

CloudMock emulates Amazon EventBridge Scheduler, supporting schedule and schedule group management with tagging.

OperationStatusNotes
CreateScheduleSupportedCreates a schedule
GetScheduleSupportedReturns schedule details
ListSchedulesSupportedLists all schedules
UpdateScheduleSupportedUpdates a schedule
DeleteScheduleSupportedDeletes a schedule
CreateScheduleGroupSupportedCreates a schedule group
GetScheduleGroupSupportedReturns schedule group details
ListScheduleGroupsSupportedLists schedule groups
DeleteScheduleGroupSupportedDeletes a schedule group
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { SchedulerClient, CreateScheduleCommand } from '@aws-sdk/client-scheduler';
const client = new SchedulerClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateScheduleCommand({
Name: 'my-schedule',
ScheduleExpression: 'rate(1 hour)',
FlexibleTimeWindow: { Mode: 'OFF' },
Target: {
Arn: 'arn:aws:lambda:us-east-1:000000000000:function:my-function',
RoleArn: 'arn:aws:iam::000000000000:role/scheduler-role',
},
}));
import boto3
client = boto3.client('scheduler',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_schedule(
Name='my-schedule',
ScheduleExpression='rate(1 hour)',
FlexibleTimeWindow={'Mode': 'OFF'},
Target={
'Arn': 'arn:aws:lambda:us-east-1:000000000000:function:my-function',
'RoleArn': 'arn:aws:iam::000000000000:role/scheduler-role',
})
cloudmock.yml
services:
scheduler:
enabled: true
  • Schedules do not trigger target invocations
  • Cron and rate expressions are stored but not evaluated
  • Schedule groups are organizational only