I'm trying to use event bridge's new scheduler functionality:
I don't see the option "Call endpoint...", I did further reading and apparently is possible by sending a JSON but the format of that JSON is a big mystery and I can't find an example.
Is it possible to provide a working example of that, all that I tried is just not working.
EDIT: This is an AWS cli example for something else:
aws scheduler create-schedule --schedule-expression "at(2022-11-20T13:00:00)" --name schedule-name \
--target '{"RoleArn": "role-arn", "Arn": "QUEUE_ARN", "Input": "TEST_PAYLOAD" }' \
--schedule-expression-timezone "America/Los_Angeles"
--flexible-time-window '{ "Mode": "OFF"}'
The --target should be changed to call my API gateway endpoint but I can't figure out what are the required fields.
EDIT2: Was suggested that (this question) may provide a solution, but so far the accepted solution raises another question:
It appears you are right that the brand-new EventBridge Scheduler console interface does not yet (?) support API Destinations.
I would like to do it in schedulers not rules, the way I see it schedulers is more adequate to what I'm trying to do, and I already have a solution using rules