Hi I have been assigned a task to send an event to eventbridge, I want to send the event pattern with customized values, I want to get these values out of Lambda, any help could be appreciated.
Asked
Active
Viewed 2,255 times
2
-
In what language are you required to do this? – Allan Chua Jan 25 '22 at 13:48
-
https://docs.aws.amazon.com/step-functions/latest/dg/sample-eventbridge-custom-event.html,https://www.youtube.com/watch?v=-Nv-Gejpkhc – Jatin Mehrotra Jan 25 '22 at 13:54
-
java @AllanChua – Kani Jan 27 '22 at 14:29
-
mentioned url is not working @JatinMehrotra – Kani Jan 27 '22 at 14:29
-
https://docs.aws.amazon.com/step-functions/latest/dg/sample-eventbridge-custom-event.html, https://www.youtube.com/watch?v=-Nv-Gejpkhc – Jatin Mehrotra Jan 28 '22 at 05:15
2 Answers
0
You can go to Amazon EventBridge -> rule
and create one.In Define pattern
you can choose Event pattern
as it is what you want. Here you can select Pre-defined pattern by service
and select the service(in your case probably a lambda) or you can choose Custom pattern
where you can give your own pattern(in JSON).
Now you can invoke a target in Select targets
, maybe an sns. Here you can get the values out of lambda by choosing Input transformer
e.g ({"Name":"$.detail.InstanceID"}
).
You can read further about this here.

Riz
- 1,131
- 1
- 9
- 12
0
I have deployed a generic webhook which points to my custom eventbridge bus. On deployment of generic webhook, I get an API gateway endpoint to which i can send POST requests.

Nikhil S
- 1,179
- 1
- 9
- 19