Trigger cloud lambda with MQTT message

0

Is there a way to connect GG to a "normal" lambda that lives in the cloud?
I was requested to do a flow that goes like this:

device --mqtt topic--> gg lambda (gg core) --mqtt topic--> iot core (cloud) ----> cloud lambda (triggers sagemaker)

I didn't find a way to do this, so instead I did this:

device --mqtt topic--> gg lambda (gg core) (directly invoke the cloud lambda) --> cloud lambda (triggers sagemaker)

But I was told this didn't follow the flow as designed, so I need to find a way to trigger the cloud lambda differently. From what I know, if I link a lambda to an GG core it will be run locally in the core and not in the cloud and I haven't found a way to trigger a cloud lambda using an mqtt message or some other way that involves the "IoT Core" invoking it.

Is there a way of doing the designed flow? Or is that just not possible?

feita há 4 anos1019 visualizações
2 Respostas
0

Hi tgonzale:

If I understand correctly, you just want to know if it is possible for Greengrass Lambda to trigger cloud side Lambda?

If that is your question, a good solution might be setting Rules for AWS IOT, you can access many AWS services there.

Reference link:
https://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html

Best Regards

AWS
respondido há 4 anos
0

IoT Rules is the answer, thanks!

respondido há 4 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas