How do I troubleshoot errors in EventBridge Scheduler?

1 minute read
0

I want to troubleshoot errors in Amazon EventBridge Scheduler.

Resolution

Check EventBridge Scheduler metrics

Use Amazon CloudWatch to monitor EventBridge Scheduler. To check the metrics for a schedule, see Accessing metrics.

For example, you can check metrics such as TargetErrorCount, InvocationDroppedCount, and TargetErrorThrottledCount. For more information about EventBridge metrics, see List of metrics.

You can also set up a dead-letter queue (DLQ) that provides a JSON payload with invocation details when a schedule fails to invoke its target.

Check that EventBridge Scheduler has the necessary permissions to run

Verify that your AWS Identity and Access Management (IAM) execution role allows EventBridge Scheduler to assume the role. The policy that you attach to the role must also have permission to invoke the targets.

To check that EventBridge Scheduler can assume the role, complete the following steps:

  1. Open the EventBridge console.
  2. Choose Schedules, and then select your schedule.
  3. Choose the Target tab.
  4. Select the IAM execution role.
  5. Choose Trust relationships.
  6. Verify that Principal is set to scheduler.amazonaws.com.
  7. Verify that Action is set to sts:AssumeRole.
AWS OFFICIAL
AWS OFFICIALUpdated a month ago