title: How can I publish to a MQTT topic in a Amazon AWS Lambda function?
body: <p>I would like to have an easy command like I use in the bash to publish something to a topic on MQTT inside a AWS Lambda function. Along the lines of:
  mosquitto_pub -h my.server.com -t "light/set" -m "on"</p>
  
  <p>Background: I would like to turn a lamp on and off with Alexa. Alexa can start a Lambda function, and inside of this Lambda function I would like to start an MQTT publish, because the lamp can listen to a MQTT topic and react on the messages there.(Maybe there are easier solutions, but we are in a complicated (university) network which makes many other approaches more difficult)</p>