- 最新
- 最多得票
- 最多評論
Not sure on this but can you try this template and see if it works?
input_template = <<EOF
{
"ContainerOverrides": {
"Environment": [
{
"Name": "PAYLOAD",
"Value": <aws.events.event.json>
}
]
}
}
EOF
I've removed the quotes around <aws.events.event.json>
to avoid an escaping issues like the ones mentioned in the last line of this doc https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-transform-target-input.html#eb-transform-input-issues
EventBridge doesn't escape values extracted by Input Path, when populating the Input Template for a target.
EventBridge also doesn't unescape to when aws.events.event.json
is "{\"a\":\"b\"}"
, the outcoming transformation may make "Value": "<aws.events.event.json>"
to "Value": ""{\"a\":\"b\"}""
. This will be an invalid JSON and lead to failureInvocation metric.
If this wasn't the issue, then I'd recommend checking if there's any other unescaped quotes in the event payload. The easiest way would be to send your events to CloudWatch Log target and inspect the event there.
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
Invocation is still failing. When I loaded my event on Cloudwatch, it looks like this:-
and there's no escaped quotes in the data or sample_key ?