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?

질문됨 4년 전1007회 조회
2개 답변
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
답변함 4년 전
0

IoT Rules is the answer, thanks!

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠