How do I get trigger broker topic's routing key on lambda function

0

Hello, I am coding now AWS lambda function, and I connected it to RabbitMQ broker. I created a queue on RabbitMQ and I connected this queue to topic by Routing Key. When I send message to RabbitMQ topic, it sends message to the queue and it is triggered to the AWS Lambda function and now I need 'routing key' in the lambda function. How can I get this routing key?

Regards, Can

Can
已提问 2 年前354 查看次数
1 回答
0

Hi Can, You can pass the routing key value in a header property when sending the message and that will be passed on as an event header to the target Lambda function. The value would be sent as a byte array. Currently, we do not propagate the routing key to the target Lambda function.

Thanks, Mithun

AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则