Skip to content

Latest commit

 

History

History

iotshadow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWS Device Shadow

This activity allows you to update/get/delete a device shadow on AWS.

Installation

Flogo CLI

flogo install github.com/project-flogo/aws-contrib/activity/iotshadow

Configuration

To configure AWS credentials see configuring-sdk

Settings:

Name Type Description
thingName string The name of the "thing" in AWS IoT REQUIRED
op string The AWS IoT shadow operation to perform (Allowed values are get, update, delete) - REQUIRED
region string The AWS region, uses environment setting by default

Input:

Name Type Description
desired object The desired state of the thing
reported object The reported state of the thing

Output:

Name Type Description
result object The response shadow document

Examples

Update Temp

Configure a task in flow to update the device shadow of 'raspberry-pi' with a reported temp of "50".

{
  "id": "shadow_update",
  "name": "Update AWS Device Shadow",
  "activity": {
    "ref": "github.com/project-flogo/aws-contrib/",
    "settings": {
      "thingName": "raspberry-pi",
       "op": "update"
    },
    "input": {
      "reported": { "temp":"50" }
    }
  }
}