0

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.

1
  • have you tried using input transformer in eventbridge rules. as the infomration is limited i cannot fully tell you how you can achive it . Please include some sample setup files and what have you done. As my understanding you can use input transformer to achive it. Commented Jan 10 at 2:55

1 Answer 1

0

Here is the solution Pass custom parameters in Event Bridge schedule event to lambda , there is a option with CloudWatch to set custom object and only is neccesary get this value from your python code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.