Logging event bridge schedules

0

I have an event bridge schedule that runs a redshift stored procedure. The call is failing but I'm not seeing any errors or anything. When I run the stored procs manually they work.

So how can I debug or log what is happening?

2 Answers
1

Hi,

I would suggest that you replace the direct trigger from EventBridge's event to RedShift procedure by an indirect one. You should create a Lambda that you attach to the event an this Lambda should launch the procedure.

This indirect trigger will give you all the flexibity that you need to log the event in CloudWatch, raises SNS notifications, etc.

Best,

Didier

profile pictureAWS
EXPERT
answered 4 months ago
  • I would but the architecture is built around EventBridge and the other calls are there. So creating a new way would require too much overhaul of the system

0

I'd recommend to start debugging based on this page first https://docs.aws.amazon.com/scheduler/latest/UserGuide/monitoring-overview.html. If you are still unable to make progress, know that EventBridge schedule in the end essentially just calls an API. You can look into making the call directly with the same IAM role to see if the call passes or not. If it does, look into if the IAM trust policies are setup correctly. If you are at lost and need further assistance, reachout to AWS support who can work with internal tooling to help drive this to resolution.

profile pictureAWS
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions