1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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.
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 7달 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
Which is the error message that it is returning?