- Newest
- Most votes
- Most comments
Hello,
there are several things that may go wrong :)
First of all, make sure the sintax is ok.
user/${get(${aws_lambda("arn:aws:lambda:us-east-1:1234567890:function:GetUserIDsForNode", {"data":{"node_id":"${topic(2)}"}})}, 0)}
Turns out this is one of those things where I had to get out of my own way.
There's no need to think about how many places I have to add ${}
.
The trick was to build a complete SELECT clause first (like a normal SQL statement), which means forgetting the ${}
part.
For me that looked like:
SELECT get(aws_lambda("LambdaARN", { "data":{"node_id": topic(2) }}), 0)
THEN removing the SELECT
and wrap the ${}
only around this:
${get(aws_lambda("LambdaARN", { "data":{"node_id": topic(2) }}), 0)}
Finally I could add any other string literals I wanted around it:
user/${get(aws_lambda("LambdaARN", { "data":{"node_id": topic(2) }}), 0)}
And that worked!
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Hey I tried that. But I get this again:
Resource handler returned message: "Unexpected character '$' ${aws_lambda("arn:aws:lambda:us-east- 1:1234567890:function:GetUserIDsForNode", {"data":{"node_id":"${topic(2)}"}})}, 0)} ----^ at 1:5
I also added select beside the inner function calls, because this expression is technically supposed to be a SELECT clause.
But that didn't work either.