1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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.
Contenido relevante
- OFICIAL DE AWSActualizada hace 8 meses
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 7 meses
Which is the error message that it is returning?