Skip to content

Instantly share code, notes, and snippets.

@tnoborio
Created March 2, 2018 13:12
Show Gist options
  • Save tnoborio/11f950c965559c4476892899c6555155 to your computer and use it in GitHub Desktop.
Save tnoborio/11f950c965559c4476892899c6555155 to your computer and use it in GitHub Desktop.
import boto3
import json
def lambda_handler(evt, context):
boto3.client('iot-data', region_name='ap-northeast-1').update_thing_shadow(
thingName = "bot",
payload=json.dumps({"state": {"desired": {"foo": 4}} })
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment