title: Invoking local lambda function by an MQTT event inside greengrass core
body: <p>Am working on a simple application where need to collect temperature from an sensor and publishing to an MQTT topic and trying to subscribe in another lambda function, where it need to decide on passing message to another IOT device. Following are my questions?</p>
  
  <ol>
  <li>Is it a correct way to subscribe to a MQTT topic inside a Lambda function?</li>
  <li>Once deployed inside greengrass core will the lambda function be invoked?</li>
  <li>Will MQTT events invoke the lambda function deployed inside greengrass core if so, samples will be useful.</li>
  </ol>
  
  <p>This whole stuff confusing a lot.</p>
  
  <p>Thanks in advance.</p>