1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 7 mesi fa
Which is the error message that it is returning?