6

I am receiving a webhook event on my AWS EventBridge. The event json body is pretty large and I need to transfer only 4 fields to the target. The fields are :

{"browser_ip":"$.detail.payload.browser_ip","created_at":"$.detail.payload.created_at","email":"$.detail.payload.email","shopify_order_id":"$.detail.payload.id"}

I have tried the "Configure Input" --> "Part of the matched eventInfo" option, but it works only when I add just 1 parameter lets say the "$.detail.payload". When I add multiple parameters , it says the input path is invalid. I could not find any example on how to add multiple parts of the matched event info. Is it possible ? If yes then what am I doing wrong?

enter image description here enter image description here Regards, Lina

1 Answer 1

9

Found the answer. Instead of using the "part of the event matched" , I used the input transformer as the following :

enter image description here

Worked properly . I have the json format in the target.

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

1 Comment

I had put pretty-JSON (exactly as per "Example input paths, Templates and Outputs" and I ran into this error, putting the exact same JSON in one line made this error go away

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.