1 Answer
- Newest
- Most votes
- Most comments
0
Based on your code, it seems you are trying to use AWS Pipes, which is a feature that allows data to be streamed from a source to a target. However, the issue here is that the inputTemplate is expecting a valid JSONPath expression. The JSONPath expression <$.body> might not be valid in this context. JSONPath expressions usually start with $, and they use dot notation or bracket notation to traverse the JSON structure.
In the case of SQS messages, the body of the message is not a top-level field in the message attributes, so it cannot be accessed directly with a JSONPath expression. Instead, you may need to use a Lambda function to transform the SQS message into the format that EventBridge requires.
Here is an example of how you can do this:
- Create a Lambda function that is triggered by SQS messages.
- In the Lambda function, parse the SQS message to extract the body.
- Format the body into the detail field of the EventBridge event.
- Use the AWS SDK to send the event to EventBridge.
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 8 months ago
Which is the error message that it is returning?