Skip to content

Instantly share code, notes, and snippets.

View groteworld's full-sized avatar
👨‍💻
I'm heads down on other things, but around.

Blake Grotewold groteworld

👨‍💻
I'm heads down on other things, but around.
View GitHub Profile
@groteworld
groteworld / index.js
Last active June 5, 2020 14:49
Example aws/aws-sdk-js IotData API Lambda usage
// An usage of AWS.IotData in Lambdas
//
// This example assumes some things
// 1. That you have a environment variable AWS_IOT_ENDPOINT. This is the url that you can find in AWS IoT dashboard settings
// 2. The lambda and your aws iot devices are on the same account and region
const AWS = require('aws-sdk');
const iotData = new AWS.IotData({ endpoint: process.env.AWS_IOT_ENDPOINT });
const handler = (event, context) => {

Keybase proof

I hereby claim:

  • I am groteworld on github.
  • I am groteworld (https://keybase.io/groteworld) on keybase.
  • I have a public key whose fingerprint is AD22 BD24 76CD F77F 8143 5817 B7BF 0218 4FE0 316B

To claim this, I am signing this object: