I have multiple endpoints that I need to hit in one python lambda , for example
- Endpoint A /test/ every 30 mins
- Endpoint B /service every 5 mins
- Endpoint C /target/ evere 3 hours
The python code to hit the endpoint is the same and I need to avoid duplicate code
I created 3 different rules in EventBridge, my question: how is possible send a parameter from event bridge to lamba and just hit the endpoint expected?
For example send as parameter ['url','/test/'] when the event 30 mins is running to python lambda.
Thanks in advance.